Feb 02 2018 02:47 AM
Hello,
I am an global admin and I would like to be able to add new owners to communication sites. There is no problem adding new owners for teamsites since they create O365 groups which I can see in the admin view.
I could take over the account but it takes a lot of time ect.
This is a bit of a challenge since users quit and leave locked sites behind them!
Any ideas?
Feb 02 2018 04:36 AM
Feb 02 2018 06:50 AM
I am not sure how I would powershell this, I've never used powershell.
Wow really? Must've missed that :)
Feb 02 2018 08:30 AM
SolutionAfter connecting to SharePoint Online Management Shell run the following to identity the Communication Sites
Connect-SPOService
Get-SPOSite | Where-Object {$_.template -eq "SITEPAGEPUBLISHING#0"}
This should give you a list of all Communication Sites - select the site url and user you wish to add and input them below
$Site = Get-SPOSite "<site url>"
$user = "<user email>"
$group = $site.title + " Owners"
Add-SPOUser -Group $group -site $site.url -loginname $user
Feb 02 2018 08:30 AM
SolutionAfter connecting to SharePoint Online Management Shell run the following to identity the Communication Sites
Connect-SPOService
Get-SPOSite | Where-Object {$_.template -eq "SITEPAGEPUBLISHING#0"}
This should give you a list of all Communication Sites - select the site url and user you wish to add and input them below
$Site = Get-SPOSite "<site url>"
$user = "<user email>"
$group = $site.title + " Owners"
Add-SPOUser -Group $group -site $site.url -loginname $user