external help file | applicable | schema |
---|---|---|
SharePoint Server 2013, SharePoint Server 2016, SharePoint Online |
2.0.0 |
Returns a specific group or all groups.
Get-PnPGroup [-Web <WebPipeBind>]
[-Identity <GroupPipeBind>]
[-Connection <SPOnlineConnection>]
Get-PnPGroup [-AssociatedMemberGroup [<SwitchParameter>]]
[-Web <WebPipeBind>]
[-Connection <SPOnlineConnection>]
Get-PnPGroup [-AssociatedVisitorGroup [<SwitchParameter>]]
[-Web <WebPipeBind>]
[-Connection <SPOnlineConnection>]
Get-PnPGroup [-AssociatedOwnerGroup [<SwitchParameter>]]
[-Web <WebPipeBind>]
[-Connection <SPOnlineConnection>]
Get-PnPGroup [-Web <WebPipeBind>]
[-Includes <String[]>]
[-Connection <SPOnlineConnection>]
PS:> Get-PnPGroup
Returns all groups
PS:> Get-PnPGroup -Identity 'My Site Users'
This will return the group called 'My Site Users' if available
PS:> Get-PnPGroup -AssociatedMemberGroup
This will return the current members group for the site
Retrieve the associated member group
Type: SwitchParameter
Parameter Sets: Members
Required: False
Position: Named
Accept pipeline input: False
Retrieve the associated owner group
Type: SwitchParameter
Parameter Sets: Owners
Required: False
Position: Named
Accept pipeline input: False
Retrieve the associated visitor group
Type: SwitchParameter
Parameter Sets: Visitors
Required: False
Position: Named
Accept pipeline input: False
Get a specific group by name
Type: GroupPipeBind
Parameter Sets: ByName
Aliases: Name
Required: False
Position: 0
Accept pipeline input: True
Specify properties to include when retrieving objects from the server.
Type: String[]
Parameter Sets:
Required: False
Position: 0
Accept pipeline input: False
The web to apply the command to. Omit this parameter to use the current web.
Type: WebPipeBind
Parameter Sets: (All)
Required: False
Position: Named
Accept pipeline input: False
Optional connection to be used by cmdlet. Retrieve the value for this parameter by eiter specifying -ReturnConnection on Connect-PnPOnline or by executing Get-PnPConnection.
Type: SPOnlineConnection
Parameter Sets: (All)
Required: False
Position: Named
Accept pipeline input: False