Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
108 lines (75 sloc) 2.58 KB
external help file applicable title schema author ms.author ms.reviewer
sharepointonline.xml
SharePoint Online
Get-SPOSiteGroup
2.0.0
trent-green
trgreen

Get-SPOSiteGroup

SYNOPSIS

Gets all the groups on the specified site collection.

SYNTAX

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

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.

For permissions and the most current information about Windows PowerShell for SharePoint Online, see the online documentation at SharePoint Online PowerShell.

EXAMPLES

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

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

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

PARAMETERS

-Group

Specifies the group name.

Type: String
Parameter Sets: (All)
Aliases: 
Applicable: SharePoint Online

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-Limit

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

Type: Int32
Parameter Sets: (All)
Aliases: 
Applicable: SharePoint Online

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-Site

Specifies the site collection scope.

Type: SpoSitePipeBind
Parameter Sets: (All)
Aliases: 
Applicable: SharePoint Online

Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters (https://go.microsoft.com/fwlink/?LinkID=113216).

INPUTS

OUTPUTS

NOTES

RELATED LINKS

Getting started with SharePoint Online Management Shell

Set-SPOSiteGroup

Remove-SPOSiteGroup

You can’t perform that action at this time.