Skip to content

New command: spo group get #1692

@VelinGeorgiev

Description

@VelinGeorgiev

Usage

spo group get [options]

Description

Gets a group within specific web

Options

Option Description
-u, --webUrl <webUrl> Url of the web to list the user within
--name [name] Name of the site group to get
--id [id] Id of the site user to get
-o, --output [output] Output type. json,text. Default text
--verbose Runs command with verbose logging
--debug Runs command with debug logging

Remarks

Use either 'name' or 'id', but not both

Example

Gets group with id 5 for web https://contoso.sharepoint.com/sites/mysite

spo group get --webUrl "https://contoso.sharepoint.com/sites/mysite" --id 7

Gets group with name Team Site Members for web https://contoso.sharepoint.com/sites/mysite

spo group get --webUrl "https://contoso.sharepoint.com/sites/mysite" --name "Team Site Members"

Rest APIs reference

GET https://contoso.sharepoint.com/sites/mysite/_api/web/sitegroups/GetByName('Team Site Members')
GET https://contoso.sharepoint.com/sites/mysite/_api/web/sitegroups/GetById(7)

Additional Information

Get-PnPGroup -
https://docs.microsoft.com/en-us/powershell/module/sharepoint-pnp/get-pnpgroup?view=sharepoint-ps

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions