Update-PnPSiteClassification

Updates Site Classifications for the tenant. Requires a connection to the Microsoft Graph.

Syntax

Update-PnPSiteClassification
      [-Classifications <String>]
                                  [-DefaultClassification <String>]
                                  [-UsageGuidelinesUrl <String>]
Update-PnPSiteClassification
      -Settings <SiteClassificationsSettings>

Examples

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

Connect-PnPOnline -Scopes "Directory.ReadWrite.All"
Update-PnPSiteClassification -Classifications "HBI","Top Secret"

Replaces the existing values of the site classification settings

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

Connect-PnPOnline -Scopes "Directory.ReadWrite.All"
Update-PnPSiteClassification -DefaultClassification "LBI"

Sets the default classification value to "LBI". This value needs to be present in the list of classification values.

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

Connect-PnPOnline -Scopes "Directory.ReadWrite.All"
Update-PnPSiteClassification -UsageGuidelinesUrl http://aka.ms/sppnp

sets the usage guideliness URL to the specified URL.

Parameters

-Classifications

A list of classifications, separated by commas. E.g. "HBI","LBI","Top Secret"

Type:String
Position:Named
Accept pipeline input:False
Accept wildcard characters:False
-DefaultClassification

The default classification to be used. The value needs to be present in the list of possible classifications

Type:String
Position:Named
Accept pipeline input:False
Accept wildcard characters:False
-Settings

A settings object retrieved by Get-PnPSiteClassification

Type:SiteClassificationsSettings
Position:Named
Accept pipeline input:False
Accept wildcard characters:False
-UsageGuidelinesUrl

The UsageGuidelinesUrl. Set to "" to clear.

Type:String
Position:Named
Accept pipeline input:False
Accept wildcard characters:False