concept security in category sharePoint

appears as: security, security
SharePoint 2010 Web Parts in Action

This is an excerpt from Manning's book SharePoint 2010 Web Parts in Action.

By default, these site pages can’t contain inline server-side code, such as custom logic and events. Assume that you create a new site page in a document library and want to add a submit button that runs some code when clicked. You can’t do this using inline code without changing the security settings of your SharePoint web application. You can lower the security, but I don’t recommend it because that exposes your web application to malicious code. Instead, you have two basic options that work equally well but have different purposes:

Sandboxed solutions in SharePoint make deployment easier and allow you to create custom applications in a controlled manner. Sandboxed solutions also introduce a new security scope for SharePoint applications with a limited security policy. Previous SharePoint versions had only one level where the application was fully trusted (deployed to the global assembly cache, or GAC) and one level in partial trust (deployed in the local web application bin folder, which required a lot of configuration). The level of security and type of deployment is determined by the needs and use of the application. This chapter discusses the various options using a set of examples.

SharePoint 2010 Workflows in Action

This is an excerpt from Manning's book SharePoint 2010 Workflows in Action.

This out-of-the-box experience is a compelling reason to manage your business processes within SharePoint, because it provides a user interface and other workflow fundamentals like security, reporting, and logging. These features make SharePoint workflows and your business processes a powerful combination.

In addition to those two techniques, SPD 2010 has a host of new actions and conditions of particular interest. The two most exciting groups include actions and conditions that manage document sets and security permissions. Document sets are groups of documents. Workflows can run on top of these sets and do interesting things such as routing them for retention within the Records Center. This may be desirable for compliance or legal considerations. The second group includes actions and conditions concerning SharePoint security. With SPD 2010, your workflows can manage security by adding and removing user permissions on documents, for example.

Table 5.7. Working with security-related Actions and Conditions in an SPD workflow

Action

Steps

Result

Create a document library called Expense Reports and configure security on that library.
  1. Create a new document library called Expense Reports and navigate to the library’s Library Settings page. Then choose Permissions for this document library.
  2. Click the Stop Inheriting Permissions Ribbon button:

  3. Delete all permissions from the library by selecting all users and groups and clicking the Remove User Permissions Ribbon button.
  4. Click the Grant Permissions Ribbon Button and type NT AUTHORITY\AUTHENTICATED USERS in the Users and Groups field and then click the check box next to Contribute. Click OK.
A new document library is created for users to upload their expense reports. The library is set to not inherit permissions for its parent site and all authenticated users have the ability to upload documents.
Create a new SharePoint Designer list workflow to manage the approval of expense reports.
  1. Create a new List Workflow titled Submit Expense Report for Approval on the Expense Reports library.
NOTE: On the new list, be sure you are logged in as a user with full control, such as a site collection administrator.
  1. Add an Impersonation Step to the workflow:

  2. In the Impersonation Step, add a Lookup Manager for a User action and set it to look up the manager of the user who created the current item:

  3. Add a Replace List Item Permissions action and set it to give the user who created the item read permission and that same user’s manager approve permissions:

NOTE: The user who created the item has contribute permission on the list item but, to prevent them from changing a submitted report, they are given read permission. The user’s manager is then given approve permissions.
A new SPD workflow is created that will break inheritance on the expense report and add the submitter as a reader on the report and also add the submitter’s manager as an approver.
Publish the workflow.
  1. Set the workflow to run automatically when an item is created.
  2. Click Publish.
The workflow is set to automatically start and is published to the Expense Reports library.
SharePoint 2007: Developer’s Guide to Business Data Catalog

This is an excerpt from Manning's book SharePoint 2007: Developer’s Guide to Business Data Catalog.

Once the application definition file has been authored, it’s uploaded to the Shared Services database via the Shared Services Provider page available from SharePoint Central Administration. The metadata is then stored there until it’s updated, either with another ADF, or via the object model. Figure 1.9 displays the Shared Services Provider page that’s used to upload the ADF, and also configure security trimming on the business data.

Every database or data source usually contains its own security model, its own authentication mechanisms, and its own permissions/role model. The Business Data Catalog provides authentication properties that allow you to take advantage of the back-end security model, providing multiple types of authentication and permission inheritance from the data source. But BDC also provides the ability to security trim on the front end as well as the back end. This is sometimes referred to as a pain in the neck, because it almost seems that you’re granting permissions twice to the data source—once in the back end and once in the front end. But it does mean that somebody who can access data via the company’s LOB system may not need or shouldn’t be granted permission to the same data via SharePoint. Therefore each LOB application, and each entity, can have further permissions set for SharePoint users from within SharePoint.

Security in the Business Data Catalog is something that can also be configured using the BDC API. Examples will be shown in the Business Data Catalog object model chapter of this book (chapter 8). In the next section, we’ll discuss the BDC Web Parts and how you can surface the data on your SharePoint sites. Upon adding a web part on the page, you’ll notice the errors that are displayed should you not have permission to execute the returned entity. One of the main advantages of the BDC is that you can add AD groups, authenticated users, and your SharePoint groups when configuring the BDC permissions. All of the permissions can also be set up in the application definition file. You’ll notice that, if you export an ADF from SharePoint, your configured permissions are included. This helps when moving your ADF from staging to production.