How to display List Permissions in SharePoint 2013 using PowerShell

Hello SharePointers,

Greetings. In this blog, I will provide you the steps to display unique list permissions using Powershell commands. This is a common requirement in any intranet site to see if the permission is being applied properly.Its one of monitoring task for the SharePoint administrator to make sure that Permissions are not broken and comply with the Organisation Security Policy.

I request the readers to subsitute the site name with your own site name and provide the appropriate list name to find out the unique permissions at user level.

Below is the piece of PowerShell commands .

 

  1. Add-PSSnapin Microsoft.SharePoint.PowerShell
  2. $WebUrl = Read-Host ‘Please provide URL Name’
  3. $Web = Get-SPWeb $WebUrl
  4. $ListName = Read-Host ‘Please Provide the List on which Permission is displayed’
  5. $List = $web.Lists[$ListName]
  6. $Unique = $List.hasuniqueroleassignments
  7. if (($List.permissions -ne $null) -and ($Unique -eq “True”))
  8. {
  9. Write-Output “———————“
  10. Write-Output “Your requested List permission is: “
  11. $List.permissions | fl member, basepermissions
  12. }
  13. elseif ($Unique -ne “True”) {
  14. Write-Output “Inherits permissions from $Web”
  15. }
  16. Write-Host “———————-“
  17. $web.dispose()

Happy SharePointing Folks 🙂

 

 

 

 

 

 

Leave a Reply

Your email address will not be published. Required fields are marked *