A site administrator can easily verify and check user permissions from site settings page, steps are quite simple:
Go to Site Settings –> Site Permissions –> Click on Check Permissions Button and enter user name, this will list the user rights for a single user. But what if it is required to list access permission details for all the users in a SharePoint site, this is not possible Out of the Box.
The below listed script methods are helpful is this scenario, it will list all users with their permissions and security group detail. The script will generate a detail drill down report for a Web Application which include all sites, sub sites, lists/libraries and items (if inheritance is break).
There is a method in the script which takes two parameters, the WebApplication URL and Output file path, which will create a report in CSV format.
GetUserAccessReport <span class="powerShell__string">"http://sp2013"</span> <span class="powerShell__string">"c:\users_PermisionReport.csv"</span>
The output is generated in CSV format, below images shows the output format:
I have tested this script on both SharePoint 2013 and SharePoint 2010.
Salaudeen Rajack has written a script on Technet to Check Access Rights for a Specific User, I did a little modification to get the permission details of all users for a Web Application. Thanks to Salaudeen for sharing such a wonderful script to the tech community.
Latest posts by Adnan Amin (see all)
- PowerShell script to download all Farm solutions - June 23, 2016
- Beta Exam for SharePoint 2016 is now available (Exam 70-339) - June 22, 2016
- SharePoint Server 2016 Hardware and Software Requirements - January 29, 2016