Oct 14 2022 06:21 AM
Hi,
Is it possible to obtain a list of all the owners for all the sites within our SharePoint Online application??
We need to contact them to look at the sites to confirm they have set the permissions correctly. I'm trying not to have to go through each site manually and record them
Oct 14 2022 01:39 PM - edited Oct 14 2022 01:40 PM
Well, you can use PowerShell by installing the SharePoint Online Management Shell
Get started with the SharePoint Online Management Shell | Microsoft Learn
foreach($site in $sites)
#Code abbreviation
$siteAdmins = Get-SPOUser -Site $siteURL -Limit All | select LoginName,IsSiteAdmin | ? { $_.ISSiteAdmin }
#Code abbreviation
foreach($siteAdmin in $siteAdmins)
#Code abbreviation
Write-Host $siteAdmin.LoginName
Oct 14 2022 07:28 PM