Forum Discussion
Chris_Clark1968
Aug 08, 2023Brass Contributor
Retrieving Site Owners for all Communication Sites within my tenants SharePoint site
Hi, I'm trying to get a list of all the site owners for the SharePoint, Communication Sites within our tenant. I'm looking at Powershell and not having much luck The Script I'm usi...
ganeshsanap
MVP
Chris_Clark1968 Try using this:
Connect-SPOService -url "https://contoso-admin.sharepoint.com"
Get-SPOSite -Template SITEPAGEPUBLISHING#0 -Limit ALL | Select URL, Owner
Please click Mark as Best Response & Like if my post helped you to solve your issue. This will help others to find the correct solution easily. It also closes the item. If the post was useful in other ways, please consider giving it Like.
Chris_Clark1968
Aug 09, 2023Brass Contributor
ganeshsanap
Thank you for your reply
The code brought back results but these related to the Admin of the sites
I would like to retrieve the owners which may be more than one for each site