Cmdlets

Choose a cmdlet from the list on the left or search for a specific cmdlet. Choose a cmdlet from the list or search for a specific cmdlet.
About Help  Providers
 

Set-SPOSiteGroup

Set-SPOSiteGroup

microsoft.online.sharepoint.powershell-1.dll, microsoft.online.sharepoint.powershell.dll

Synopsis

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

Syntax

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

Detailed Description

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

For permissions and the most current information about Windows PowerShell for SharePoint Online, see the online documentation at http://go.microsoft.com/fwlink/p/?LinkId=251832 (http://go.microsoft.com/fwlink/p/?LinkId=251832).

Parameters

-Site <SpoSitePipeBind>

Specifies the site collection the group belongs to.

Aliases

None

Required?

True

Position

2

Default value

Accept pipeline input?

False

Accept wildcard characters?

False

-Identity <String>

Specifies the name of the group.

Aliases

None

Required?

True

Position

3

Default value

Accept pipeline input?

False

Accept wildcard characters?

False

-Name <String>

Specifies the new name of the group.

Aliases

None

Required?

False

Position

4

Default value

Accept pipeline input?

False

Accept wildcard characters?

False

-PermissionLevelsToAdd <String[]>

Specifies the permission levels to grant to the group.

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

Aliases

None

Required?

False

Position

6

Default value

Accept pipeline input?

False

Accept wildcard characters?

False

-PermissionLevelsToRemove <String[]>

Specifies the permission levels to remove from the group.

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

Aliases

None

Required?

False

Position

7

Default value

Accept pipeline input?

False

Accept wildcard characters?

False

-Owner <String>

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

Aliases

None

Required?

False

Position

8

Default value

Accept pipeline input?

False

Accept wildcard characters?

False

Input Type

Return Type

Notes

None

Examples

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

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

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

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

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

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

Introduction to the SharePoint Online management shell
Set up the SharePoint Online Management Shell Windows PowerShell environment
Get-SPOSiteGroup