Skip to content

Latest commit

 

History

History
50 lines (39 loc) · 1.25 KB

File metadata and controls

50 lines (39 loc) · 1.25 KB

#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-SPOGroup

Returns 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 -AssociatedMemberGroup

This will return the current members group for the site