Forum Discussion
UnderDng007
Dec 19, 2023Copper Contributor
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"}
Hello UnderDng007
i think, you mean Teams or Microsoft 365 Groups, right? A Teams/Goup have a privacy.
You can see and Export Teams settings in your Teams Admin Center:
Or also with PowerShell, here are an example:
Best, Dave
- UnderDng007Copper ContributorThank 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"}- MKumar1252Copper Contributor
UnderDng007 I am able to use this command to get Public site detail but its not provide all SharePoint site URL & Owner name . Kindly help me to get all Public site details with URL & owner name.