Skip to content

Latest commit

 

History

History
113 lines (77 loc) · 2.58 KB

File metadata and controls

113 lines (77 loc) · 2.58 KB

import Global from '../../_global.mdx'; import Tabs from '@theme/Tabs'; import TabItem from '@theme/TabItem';

spo term group add

Adds taxonomy term group

Usage

m365 spo term group add [options]

Options

`-n, --name <name>`
: Name of the term group to add

`-i, --id [id]`
: ID of the term group to add

`-d, --description [description]`
: Description of the term group to add

`-u, --webUrl [webUrl]`
: If specified, allows you to add a term group to the tenant term store as a term store administrator without the SharePoint administrator role.

Remarks

:::warning

To use this command without the --webUrl option you must 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 Adminstrator role. It allows you to add a term group to the tenant term store if you are listed as a term store administrator.

This command does not create a sitecollection specific term store/group when using the --webUrl option.

:::

Examples

Add a new taxonomy term group with the specified name

m365 spo term group add --name PnPTermSets

Add a new taxonomy term group with the specified name and id

m365 spo term group add --name PnPTermSets --id 0e8f395e-ff58-4d45-9ff7-e331ab728beb

Add a new taxonomy term group with the specified name and description with limited permissions

m365 spo term group add --name PnPTermSets --description 'Term sets for PnP' --webUrl 'https://contoso.sharepoint.com'

Response

{
  "Name": "PnPTermSets",
  "Id": "cafe662c-c3fa-4c83-bcb0-50b701b37164",
  "Description": "Term sets for PnP"
}
Description: Term sets for PnP
Id         : cafe662c-c3fa-4c83-bcb0-50b701b37164
Name       : PnPTermSets
Name,Id,Description
PnPTermSets,cafe662c-c3fa-4c83-bcb0-50b701b37164,Term sets for PnP
# spo term group add --name "PnPTermSets" --description 'Term sets for PnP'

Date: 24/05/2023

## PnPTermSets (cafe662c-c3fa-4c83-bcb0-50b701b37164)

| Property    | Value                                |
| ----------- | ------------------------------------ |
| Name        | PnPTermSets                          |
| Id          | cafe662c-c3fa-4c83-bcb0-50b701b37164 |
| Description | Term sets for PnP                    |