13
|
In SharePoint you can either create a personal or a public view on document libraries, lists, and etc. You may come across situations where you need only a few individuals to see a particular view, such as one where all columns are not shown. Currently we are not able to control access to views with security settings. Microsoft may address this in the next release or a service pack. Until that time, here is a workaround that may work in many cases.
An example: We have a custom list called Contracts containing software contract information in columns named:
First : Set permissions on the list to allow everyone in the sales department READ permissions. This may require you to break security inheritance on the list. Reminder: In SharePoint, if you give READ permission to a list or library, the person will also have READ permission to all public views. This means, by default, everyone is able to see all public views. READ permissions will not, however, allow the creation of public or private views. Next: create a public view (or alter the "All Items" view) of the list that does not include the contract amount. Set it as the default view for the list. Then: we alter our contract list. On the list where you want to restrict access to views to one or more individuals:
The filter essentially looks at the current user logged in sharepoint, if it is John Smith or Jane Smith, the filter condition is met and it returns the result in the "Contract-Restricted" view otherwise the view will not return any result. When non-sales department employees access the list, they will be denied because they have not been given READ permission. When regular sales people log in to the site and select the list, they will see the all items, but not the Contract Amount column, since we removed it from the default view. They will see both the of the public views we created, All Items and Contract-Restricted and be able to choose between them. But, when they choose the "Contract-Restricted" view they will not see any results because of the filter. When John Smith or Jane Smith access the Contracts list they will see the default view like everyone else. However, when they select the "Contract-Restricted" view, they will see results that include the Contract Amount column. |
Senior SharePoint developer is working with Microsoft technologies to develop the SharePoint web portals.
Wednesday, 19 June 2013
How to restrict public access to SharePoint lists using views with filters
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment