Export (0) Print
Expand All

Set-SPOSiteGroup

 

Applies to: SharePoint Online, Office 365

Topic Last Modified: 2013-12-18

Updates the SharePoint Online owner and permission levels on a group inside a site collection.

Set-SPOSiteGroup [-Site] <SpoSitePipeBind> [-Identity] <String> [[-Name] <String>] [[-PermissionLevelsToAdd] <String[]>] [[-PermissionLevelsToRemove] <String[]>] [[-Owner] <String>]

You must be a SharePoint Online global administrator and a site collection administrator to run the Set-SPOSiteGroup cmdlet.

 

Parameter Required Type Description

Site

Required

Microsoft.Online.SharePoint.PowerShell.SpoSitePipeBind

Specifies the site collection the group belongs to.

Identity

Required

System.String

Specifies the name of the group.

Name

Optional

System.String

Specifies the new name of the group.

PermissionLevelsToAdd

Optional

System.String[]

Specifies the permission levels to grant to the group.

NoteNote:
Permission levels are defined by SharePoint Online global administrators from SharePoint Online Administration Center.

PermissionLevelsToRemove

Optional

System.String[]

Specifies the permission levels to remove from the group.

NoteNote:
Permission levels are defined by SharePoint Online global administrators from SharePoint Online Administration Center.

Owner

Optional

System.String

Specifies the owner (individual or a security group) of the group to be created.

--------EXAMPLE 1--------

Set-SPOSiteGroup -Site http://contoso.sharepoint.com/sites/siteA -Identity "ProjectViewers" -PermissionLevelsToRemove "Full Control" -PermissionLevelsToAdd "View Only"

Example 1 changes permission level of the ProjectViewers group inside site collection http://contoso.sharepoint.com/sites/siteA from Full Control to View Only.

--------EXAMPLE 2--------

Set-SPOSiteGroup -Site https://contoso.sharepoint.com -Identity "ProjectViewers" -Owner Melissa.kerr@contoso.com

Example 2 sets Melissa.kerr@contoso.com as the owner of the ProjectViewers group.

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft