Export (0) Print
Expand All

Get-SPOSiteGroup

 

Applies to: SharePoint Online, Office 365

Topic Last Modified: 2013-12-18

Gets all the groups on the specified site collection.

Get-SPOSiteGroup [-Site] <SpoSitePipeBind> [[-Group] <String>] [-Limit <Int32>]

Use the Get-SPOSiteGroup cmdlet to get all the groups on the specified site collection by using the Site parameter.

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

 

Parameter Required Type Description

Site

Required

Microsoft.Online.SharePoint.PowerShell.SpoSitePipeBind

Specifies the site collection scope.

Group

Optional

System.String

Specifies the group name.

Limit

Optional

System.Int32

Specifies the maximum number of site collections to return. To retrieve all of the site collections, use Limit ALL. The default value is 200.

--------EXAMPLE--------

Get-SPOSiteGroup -Site http://contoso.sharepoint.com/sites/siteA

This example returns all the groups on the specified site collection http://contoso.sharepoint.com/sites/siteA.

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