Is there a way to add permission groups and add users into them via PowerShell in SharePoint Online?
Thanks Warren 🙂
I saw this and added a few cmdlets to our project. Here’s the new ones relating to permission groups.
I hope these can help people in the future.
Yes,
You will need
PowerShell 3.0
which is part of the Windows Management Framework
http://www.microsoft.com/en-us/download/details.aspx?id=34595
Then you will need
SharePoint Online management shell
http://technet.microsoft.com/en-us/library/fp161388(v=office.15).aspx
To add a user you will need to create a script that calls the Add-SPOUser PowerShell cmdlet
http://technet.microsoft.com/en-us/library/fp161371(v=office.15)
To add a group
http://technet.microsoft.com/en-us/library/fp161384(v=office.15).aspx
If there are any commands lacking in the management shell (there aren’t many) … then look at http://sharepointonlineautomationcmdlets.codeplex.com/ to see if there are any new ones added that suit your needs.