Forum Discussion

UnderDng007's avatar
UnderDng007
Copper Contributor
Dec 19, 2023

Report SP sites are Private or Public

We have a lot (thousands) of SharePoint sites, how to get a report of [Active Sites > Settings > Privacy]: where it shows if site is Private or Public? Can we export it with Powershell?

 

By the way, our tenant-level Sharing content SharePoint is currently set to 'New and existing guests'. 

  • Thank you for your answer. I am using the following command to combine the information I needed:

    Get-PnPMicrosoft365Group -IncludeOwners -IncludeSiteUrl | Where-Object { $_.Visibility -eq "Public"}

Resources