Sharepoint – List of all Permissions on Site

Problem:

Client wants a list of all permissions on a site.

Solution:

This one was fun

  1. Create a folder on your machine called Scripts
  2. Reference this site: https://www.sharepointdiary.com/2019/09/sharepoint-online-user-permissions-audit-report-using-pnp-powershell.html
  3. Save file to Scripts folder with the extension .ps1
    • Important, you have to edit the file so that it references the correct SharePoint site and save location for the output
  4. Run Powershell ISE in Admin mode (this is important as it won’t work otherwise
  5. Run Install-Module -Name PnP.PowerShell -RequiredVersion 1.12.0
  6. Go to Scripts folder
  7. Run .\FILENAME.PS1