Forum Discussion
nabin pokharel
Feb 13, 2019Copper Contributor
Getting the List of all sites/ sub-sites and their owners using PnP
Hi, I am trying to get the list of all the SharePoint sites/ sub-sites that I have access to in my tenant in SharePoint Online. Also I have to make a list of all the sites/ sub-sites with their O...
Anders Brunholm Sylvest
Feb 15, 2019Brass Contributor
Hi,
Using SPO Pnp PowerShell, you should be able to get a list of web users, after iteration webs using this:
https://docs.microsoft.com/en-us/powershell/module/sharepoint-pnp/get-pnpuser?view=sharepoint-ps
Iterate through "get-pnpsubwebs -recurse" and then call "Get-PnpUser" for each web.
- juanfilettiDec 21, 2022Copper ContributorGood