SharePoint – Difference between Item level Permission and Item level Security

Recently I discovered that in SharePoint there is a difference between Item Level Security and Item Level Permissions.

1. Item level Security

This is the one everyone knows…

You can set user security on each individual doc. in a library or a record in a list.


2. Item Level Permission

For Document libraries you can only modify this using PowerShell (or .NET)

In my opinion this has less performance impact than the Item level Security.

But of course it serves a different purpose too…

So depending on what you need I would definitely consider this option.

Here are the different options :

https://msdn.microsoft.com/en-us/library/microsoft.sharepoint.splist.writesecurity.aspx

SPList.WriteSecurity
•    1 = All users can modify all items.
•    2 = Users can modify only items that they create.
•    4 = Users cannot modify any list item.

https://msdn.microsoft.com/en-us/library/microsoft.sharepoint.splist.readsecurity.aspx

SPList.ReadSecurity
•    1 = All users have Read access to all items.
•    2 = Users have Read access only to items that they create.

Example :

CLS

if((Get-PSSnapin | Where {$_.Name -eq "Microsoft.SharePoint.PowerShell"}) -eq $null)
{
	Add-PSSnapin Microsoft.SharePoint.PowerShell;
}

$web = Get-SPWeb -Identity http://YourSP

$list = $web.Lists["Documents"]

"Read Security = " +  $list.ReadSecurity 
"Write Security = " + $list.WriteSecurity


For SharePoint lists you can just use the GUI :

image

Enjoy !

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

w

Connecting to %s

%d bloggers like this: