Execute-AzureADLabelSync

This cmdlet is available only in Security & Compliance PowerShell. For more information, see Security & Compliance PowerShell.

Use the Execute-AzureADLabelSync cmdlet to start the synchronization of sensitivity labels into Microsoft Entra ID. This allows the application of sensitivity labels to Microsoft Teams sites, Microsoft 365 Groups, and SharePoint sites. This cmdlet is required if you were using sensitivity labels before September 2019.

For information about the parameter sets in the Syntax section below, see Exchange cmdlet syntax.

Syntax

Execute-AzureADLabelSync []

Description

To use this cmdlet in Security & Compliance PowerShell, you need to be assigned permissions. For more information, see Permissions in the Microsoft Purview compliance portal.

Examples

Example 1

Execute-AzureADLabelSync

This example will initialize the synchronization of sensitivity labels into Microsoft Entra ID.