| external help file | Microsoft.Online.SharePoint.PowerShell.dll-Help.xml |
|---|---|
| Module Name | Microsoft.Online.SharePoint.PowerShell |
| online version | https://learn.microsoft.com/powershell/module/microsoft.online.sharepoint.powershell/get-spositegroup |
| applicable | SharePoint Online |
| title | Get-SPOSiteGroup |
| schema | 2.0.0 |
| author | samkabue |
| ms.author | speedta |
| ms.reviewer |
Gets all the groups on the specified site collection.
Get-SPOSiteGroup -Site <SpoSitePipeBind> [-Group <String>] [-Limit <Int32>] [<CommonParameters>]
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 administrator and a site collection administrator to run the cmdlet.
For permissions and the most current information about Windows PowerShell for SharePoint Online, see the online documentation at SharePoint Online PowerShell.
Get-SPOSiteGroup -Site https://contoso.sharepoint.com/sites/siteAThis example returns all the groups on the specified site collection https://contoso.sharepoint.com/sites/siteA.
Applicable: SharePoint Online
Specifies the group name.
Type: System.String
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: FalseApplicable: SharePoint Online
Specifies the maximum number of groups to return. The default value is 200.
Type: System.Int32
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: FalseApplicable: SharePoint Online
Specifies the site collection scope.
Type: Microsoft.Online.SharePoint.PowerShell.SpoSitePipeBind
Parameter Sets: (All)
Aliases:
Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: FalseThis cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.