Skip to main content

spo term group list

Lists taxonomy term groups

Usage​

m365 spo term group list [options]

Options​

-u, --webUrl [webUrl]

If specified, allows you to list term groups from the tenant term store as well as the sitecollection specific term store. Defaults to the tenant admin 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, permissions, response, full. Default is options.

--query [query]

JMESPath query string. See http://jmespath.org/ for more information and examples.

-o, --output [output]

Output type. json, text, csv, md, none. Default json.

--verbose

Runs command with verbose logging.

--debug

Runs command with debug logging.

Remarks​

info

To use this command without the --webUrl option you have to have permissions to access the tenant admin site.

When using the --webUrl option you can connect to the term store with limited permissions, and do not need the SharePoint Administrator role. You need to be a site visitor or more. It allows you to list term groups from the tenant term store as well as term groups from the sitecollection term store.

Examples​

List taxonomy term groups.

m365 spo term group list

List taxonomy term groups from the specified sitecollection.

m365 spo term group list --webUrl https://contoso.sharepoint.com/sites/project-x

Response​

[
{
"_ObjectType_": "SP.Taxonomy.TermGroup",
"_ObjectIdentity_": "5522b1a0-b01a-2000-4160-d04eee2e977f|fec14c62-7c3b-481b-851b-c80d7802b224:gr:aCf0Cz4D9UOS7+b/OlUY5XrNqUp10tpPhLK4MIXc7g8=",
"CreatedDate": "2019-09-03T06:41:32.070Z",
"Id": "4aa9cd7a-d275-4fda-84b2-b83085dcee0f",
"LastModifiedDate": "2019-09-03T06:41:32.070Z",
"Name": "People",
"Description": "",
"IsSiteCollectionGroup": false,
"IsSystemGroup": false
}
]