Forum Discussion

Linus Jacobson's avatar
Linus Jacobson
Copper Contributor
Feb 02, 2018
Solved

Adding users to communication sites

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? 

  • After 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

3 Replies

  • What about PowerShell? By the way, this is something that is supposed to be addressed by the new SPO Admin Center
    • Linus Jacobson's avatar
      Linus Jacobson
      Copper Contributor

      I am not sure how I would powershell this, I've never used powershell. 

       

      Wow really? Must've missed that :) 

      • Johanson Sandrasagra's avatar
        Johanson Sandrasagra
        Icon for Microsoft rankMicrosoft

        After 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

Resources