Table of Contents

Remove-PnPSiteSensitivityLabel

SYNOPSIS

Required Permissions

  • Microsoft Graph API: One of Group.ManageProtection.All (least privileged), Group.ReadWrite.All, Directory.ReadWrite.All (delegated) for a Microsoft 365 Group backed site

Removes the Microsoft Purview sensitivity label from the current site.

SYNTAX

Remove-PnPSiteSensitivityLabel [-Connection <PnPConnection>] [-Verbose]

DESCRIPTION

Removes the Microsoft Purview sensitivity label from the current site. If the site is backed by a Microsoft 365 Group, the label is also removed from the group through Microsoft Graph. Updating the group requires Group.ManageProtection.All (least privileged), Group.ReadWrite.All, or Directory.ReadWrite.All delegated permission, together with a supported administrator role. The operation is not supported with application permissions. Removing the label from a site that is not group backed does not require Microsoft Graph permissions.

EXAMPLES

EXAMPLE 1

Remove-PnPSiteSensitivityLabel

Removes the Microsoft Purview sensitivity label from the current site and its associated Microsoft 365 Group, if present.

PARAMETERS

-Connection

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

Type: PnPConnection
Parameter Sets: (All)

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-Verbose

When provided, additional debug statements will be shown while the cmdlet executes.

Type: SwitchParameter
Parameter Sets: (All)

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

Microsoft 365 Patterns and Practices

Update group - Microsoft Graph