spo group list¶
Lists all the groups within specific web
Usage¶
m365 spo group list [options]
Options¶
-u, --webUrl <webUrl>
- Url of the web to list the group within
--associatedGroupsOnly
- Get only the associated visitor, member and owner groups of the site.
-h, --help [help]
- Output usage information. Optionally, specify which section of command's help you want to see. Allowed values are
options
,examples
,remarks
,response
,full
. Default isfull
. --query [query]
- JMESPath query string. See http://jmespath.org/ for more information and examples
-o, --output [output]
- Output type.
json,text,csv,md
. Defaultjson
--verbose
- Runs command with verbose logging
--debug
- Runs command with debug logging
Examples¶
Lists all the groups within a specific web
m365 spo group list --webUrl "https://contoso.sharepoint.com/sites/contoso"
Lists the associated groups within a specific web
m365 spo group list --webUrl "https://contoso.sharepoint.com/sites/contoso" --associatedGroupsOnly