Forum Discussion
Adding users to communication sites
- Feb 02, 2018
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
I am not sure how I would powershell this, I've never used powershell.
Wow really? Must've missed that :)
- Johanson SandrasagraFeb 02, 2018
Microsoft
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