Requirement

A user requested that he need to have a permission configured on the item level where user can see only their own documents or can read all the items in the list.

Solution Approach

A SharePoint admin thought of the following,

  • Simply deny as it's only possible with Survey list in SharePoint 2007.
  • Can have created a custom list but would be a tedious task.
  • Can use the target audience feature but that would be with a complex configuration.  

However, exploring the features of SharePoint 2010 we checked configuration on the List settings of SharePoint 2010 Platform and MS has done a great job to extend the feature from Survey list to all types of lists in SharePoint 2010.

You can configure item level permissions in one go.  You can go to List Settings -> Advance Settings and Item- Level Permissions.

You can also use s PowerShell script to manage the item level permissions:

Manage Read Access

$SharePointSite = Get-SPWeb http://amar.com/
$list = $web.Lists["Library Name"]
$list.ReadSecurity = 2
$list.Update()
$SharePointSite.Dispose()

Note: 1 = "Read all items", 2 = "Read items that were created by the user"

Manage Write Access

$SharePointSite = Get-SPWeb http://amar.com/
$list = $web.Lists["Library Name"]
$list.WriteSecurity = 2
$list.Update()
$SharePointSite.Dispose()

Note:  1 = "Create and edit All items", 2 = "Create items and edit items that were created by the user" 4 = "None"

If you have any queries/questions regarding the above mentioned information then please leave a comment.

Applies to

 

  1. SharePoint Foundation Server 2010
  2. SharePoint Server 2010.