In a recent project with SharePoint 2016, I needed to configure a library with the following user requirement: The users only have to view, their own items.
By default, this option it is not available in Library settings, it is only available for List settings, so… what we can do for a Library? You guessed right, PowerShell.
To do it, we can follow the following process:
You can also use s PowerShell script to manage the item level permissions:
Manage Read Access
$web = Get-SPWeb http://urlsite/
$list = $web.Lists[“Library Name”]
$list.ReadSecurity = 2
$list.Update()
$web.Dispose()
Note: 1 = “Read all items”, 2 = “Read items that were created by the user”
Manage Write Access
$web = Get-SPWeb http://url site/
$list = $web.Lists[“Library Name”]
$list.WriteSecurity = 2
$list.Update()
$web.Dispose()
Note: 1 = “Create and edit All items”, 2 = “Create items and edit items that were created by the user” 4 = “None”
Hope that helps!