New-SPOSiteGroup
Published: July 16, 2012
Applies to: Office 365 | SharePoint Online
Creates a new group in a SharePoint Online site collection.
New-SPOSiteGroup [-Site] <SpoSitePipeBind> [-Group] <String> [-PermissionLevels] <String[]>
Parameters
| Parameter | Required | Type | Description | ||
|---|---|---|---|---|---|
| Site | Required | Microsoft.Online.SharePoint.PowerShell.SpoSitePipeBind | Specifies the site collection to add the group to. | ||
| Group | Required | System.String | Specifies the name of the group to add. | ||
| PermissionLevels | Required | System.String[] | Specifies the permission levels to grant to the newly created group. It can be any permission level that exists on the site collection on which the group is being created.
|
Detailed Description
A SharePoint 2013 group is a set of individual users. SharePoint 2013 groups enable you to manage sets of users instead of individual users.
You must be a SharePoint Online global administrator and a site collection administrator to run the cmdlet.
Input Types
Return Types
--------EXAMPLE 1--------
New-SPOSiteGroup -Site https://contoso.sharepoint.com/sites/siteA -Group "Project Leads" -PermissionLevels "Full Control"
This example creates a group named Project Leads with the Full Control permission level on the site collection https://contoso.sharepoint.com/sites/siteA.
--------EXAMPLE 2--------
New-SPOSiteGroup -Site https://contoso.sharepoint.com/sites/marketing -Group "NewGroupName" -PermissionLevels "Design"
This example creates a group named NewGroupName with the Design permission level on the site collection https://contoso.sharepoint.com/sites/marketing.
Change History
| Date | Description |
|---|---|
| July 16, 2012 | Initial publication |

Note: