Get-PnPTermGroup

Returns a taxonomy term group

Syntax

Get-PnPTermGroup
   [-Includes <String[]>]
                   [-Identity <Id, Title or TaxonomyItem>]
                   [-TermStore <Id, Name or Object>]
                   [-Connection <SPOnlineConnection>]

Examples

------------------EXAMPLE 1------------------

Get-PnPTermGroup

Returns all Term Groups in the site collection termstore

------------------EXAMPLE 2------------------

Get-PnPTermGroup -Identity "Departments"

Returns the termgroup named "Departments" from the site collection termstore

------------------EXAMPLE 3------------------

Get-PnPTermGroup -Identity ab2af486-e097-4b4a-9444-527b251f1f8d

Returns the termgroup with the given ID from the site collection termstore

Parameters

-Connection

Optional connection to be used by the cmdlet. Retrieve the value for this parameter by either specifying -ReturnConnection on Connect-PnPOnline or by executing Get-PnPConnection.

Type:SPOnlineConnection
Position:Named
Accept pipeline input:False
Accept wildcard characters:False
-Identity

Name of the taxonomy term group to retrieve.

Type:Id, Title or TaxonomyItem
Aliases:GroupName
Position:0
Accept pipeline input:True
Accept wildcard characters:False
-Includes

Specify properties to include when retrieving objects from the server.

Type:String[]
Position:0
Accept pipeline input:False
Accept wildcard characters:False
-TermStore

Term store to check; if not specified the default term store is used.

Type:Id, Name or Object
Aliases:TermStoreName
Position:Named
Accept pipeline input:False
Accept wildcard characters:False

Outputs

Microsoft.SharePoint.Client.Taxonomy.TermGroup