0

I’m using Sharepoint Online and I have a massive list of groups all in a CSV file. I dont have users for them yet but want to create the groups with a script. Is this possible if so how do i do it 🙂

I saw this article but it did not work.
http://3sharp.com/blog/use-powershell-to-automate-groups-and-users-provisioning-in-sharepoint-online/

 

Gave me the follwing error.

 

New-SPOSiteGroup : Cannot bind argument to parameter ‘Group’ because it is null.
At line:1 char:81
+ … sAndPermissions.csv | where {New-SPOSiteGroup -Group $_.Group -Permis …
+ ~~~~~~~~
+ CategoryInfo : InvalidData: (:) [New-SPOSiteGroup], ParameterBindingValidationException
+ FullyQualifiedErrorId : ParameterArgumentValidationErrorNullNotAllowed,Microsoft.Online.SharePoint.PowerShell.Ne
wSPOSiteGroup

New-SPOSiteGroup : Cannot bind argument to parameter ‘Group’ because it is null.
At line:1 char:81
+ … sAndPermissions.csv | where {New-SPOSiteGroup -Group $_.Group -Permis …
+ ~~~~~~~~
+ CategoryInfo : InvalidData: (:) [New-SPOSiteGroup], ParameterBindingValidationException
+ FullyQualifiedErrorId : ParameterArgumentValidationErrorNullNotAllowed,Microsoft.Online.SharePoint.PowerShell.Ne
wSPOSiteGroup

(Visited 127 times, 1 visits today)
Add a Comment