Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

Set-SPOSiteGroup

Published: July 16, 2012

Applies to:  Office 365 | SharePoint Online 

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>]

Parameters

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.

Detailed Description

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

Input Types

Return Types

--------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.

Change History

Date Description

July 16, 2012

Initial publication

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.