In this blog, you will see how to get all the lists which have unique permissions from the root site as well as sub sites using PnP PowerShell.

You can download setup files from the releases section of the PnP PowerShell repository. Copy the below script and paste it in a notepad. Save the file as GetUniquePermissions.ps1.SharePoint-2013-Hosting1

Open PowerShell window and run the following command.

folderlocation – GetUniquePermissions.ps1 file location

Run the following command

Thus in this blog, you saw how to get all the lists which have unique permissions from the SharePoint online site using PnP PowerShell.