#Get-SPOGroup Returns a specific group or all groups. ##Syntax
Get-SPOGroup [-Web <WebPipeBind>] [-Identity <GroupPipeBind>]Get-SPOGroup [-AssociatedMemberGroup [<SwitchParameter>]] [-Web <WebPipeBind>]Get-SPOGroup [-AssociatedOwnerGroup [<SwitchParameter>]] [-Web <WebPipeBind>]Get-SPOGroup [-AssociatedVisitorGroup [<SwitchParameter>]] [-Web <WebPipeBind>]##Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| AssociatedMemberGroup | SwitchParameter | False | Retrieve the associated member group |
| AssociatedOwnerGroup | SwitchParameter | False | Retrieve the associated owner group |
| AssociatedVisitorGroup | SwitchParameter | False | Retrieve the associated visitor group |
| Identity | GroupPipeBind | False | Get a specific group by name |
| Web | WebPipeBind | False | The web to apply the command to. Omit this parameter to use the current web. |
| ##Examples |
###Example 1
PS:> Get-SPOGroupReturns all groups
###Example 2
PS:> Get-SPOGroup -Identity 'My Site Users'This will return the group called 'My Site Users' if available
###Example 3
PS:> Get-SPOGroup -AssociatedMemberGroupThis will return the current members group for the site