Skip to content

Latest commit

 

History

History
38 lines (32 loc) · 1.18 KB

GetPnPTermGroup.md

File metadata and controls

38 lines (32 loc) · 1.18 KB

#Get-PnPTermGroup Returns a taxonomy term group ##Syntax

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

##Returns

Microsoft.SharePoint.Client.Taxonomy.TermGroup

##Parameters

Parameter Type Required Description
Identity Id, Title or TaxonomyItem False Name of the taxonomy term group to retrieve.
Includes String[] False Specify properties to include when retrieving objects from the server.
TermStore Id, Name or Object False Term store to check; if not specified the default term store is used.
##Examples

###Example 1

PS:> Get-PnPTermGroup

Returns all Term Groups in the site collection termstore

###Example 2

PS:> Get-PnPTermGroup -Identity "Departments"

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

###Example 3

PS:> Get-PnPTermGroup -Identity ab2af486-e097-4b4a-9444-527b251f1f8d

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