Cli-microsoft365: New command: spo group get

Created on 5 Jul 2020  路  3Comments  路  Source: pnp/cli-microsoft365

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

good first issue new feature work in progress

Most helpful comment

Yup! Let's get it in! 馃憦

All 3 comments

I am interested to work on this.

All yours Nanddeepn @nanddeepn ! Thank you!

Waldek @waldekmastykarz could you please confirm that the command wording is OK so Nanddeepn can start on it?

Yup! Let's get it in! 馃憦

Was this page helpful?
0 / 5 - 0 ratings