Get-SPOSiteGroup
Published: July 16, 2012
Applies to: Office 365 | SharePoint Online
Gets all the groups on the specified site collection.
Get-SPOSiteGroup [-Site] <SpoSitePipeBind> [[-Group] <String>] [-Limit <Int32>]
Parameters
| 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. |
Detailed Description
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.
Input Types
Return Types
--------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.
Change History
| Date | Description |
|---|---|
| July 16, 2012 | Initial publication |
