Créer des étiquettes de rétention et les appliquer dans les applicationsCreate retention labels and apply them in apps

Guide de sécurité et conformité pour les licences Microsoft 365.Microsoft 365 licensing guidance for security & compliance.

Notes

Ce scénario est pris en charge pour toutes les configurations d’étiquette de rétention, y compris les enregistrements réglementaires.This scenario is supported for all retention label configurations, including regulatory records.

Utilisez les informations suivantes pour vous aider à créer et publier des étiquettes de rétention, puis à les appliquer aux documents et messages électroniques.Use the following information to help you create and publish retention labels, and then apply them to documents and emails.

Les étiquettes de rétention vous permettent de conserver les éléments dont vous avez besoin et de supprimer ce dont vous n’avez pas besoin au niveau de l’élément (document ou courrier électronique).Retention labels help you retain what you need and delete what you don't at the item level (document or email). Elles s’utilisent également pour déclarer un élément en tant qu’enregistrement dans le cadre d’une gestion des enregistrements pour vos données Microsoft 365.They are also used to declare an item as a record as part of a records management solution for your Microsoft 365 data.

La mise à disposition des étiquettes de rétention aux membres de votre organisation afin qu’ils puissent classer le contenu est un processus en deux étapes :Making retention labels available to people in your organization so that they can classify content is a two-step process:

  1. Créez les étiquettes de rétention.Create the retention labels.

  2. Publiez les étiquettes de rétention à l’aide d’une stratégie d’étiquette de rétention.Publish the retention labels by using a retention label policy.

Diagramme des rôles et des tâches pour les étiquettes

Utilisez les instructions suivantes pour les deux étapes d’administration.Use the following instructions for the two admin steps.

Avant de commencerBefore you begin

L’administrateur général de votre organisation dispose de toutes les autorisations pour créer et gérer les étiquettes de rétention et leurs stratégies.The global admin for your organization has full permissions to create and edit retention labels and their policies. Si vous ne vous connectez pas en tant qu’administrateur général, voir Autorisations nécessaires pour créer et gérer des stratégies et des étiquettes de confidentialité.If you aren't signing in as a global admin, see Permissions required to create and manage retention policies and retention labels.

Comment créer et publier des étiquettes de rétentionHow to create and publish retention labels

Tout d’abord, créez vos étiquettes de rétention.First, create your retention labels. Créez ensuite une stratégie d’étiquette pour rendre les étiquettes disponibles à appliquer dans les applications.Then create a label policy to make the labels available to apply in apps.

L’emplacement dans lequel vous créez et configurez vos étiquettes de rétention dépend de votre utilisation ou non de la gestion des enregistrements.Where you create and configure your retention labels depend on whether you're using records management or not. Instructions are provided for both scenarios.

Étape 1 : créer des étiquettes de rétentionStep 1: Create retention labels

  1. Dans le Centre de conformité Microsoft 365, accédez à l’un des emplacements suivants :In the Microsoft 365 compliance center, navigate to one of the following locations:

    • Si vous utilisez la gestion des enregistrements :If you are using records management:

      • Solutions > Gestion des enregistrements > Plan de fichiers onglet > + Créer une étiquette > Étiquette de rétentionSolutions > Records management > File plan tab > + Create a label > Retention label
    • Si vous n’utilisez pas la gestion des enregistrements :If you are not using records management:

      • Solutions > Gouvernance d’informations > Étiquettes onglet > + Créer une étiquetteSolutions > Information governance > Labels tab > + Create a label

    Votre option ne s’affiche pas immédiatement ?Don't immediately see your option? Sélectionnez tout d’abord Afficher tout.First select Show all.

  2. Suivez les invites de l’Assistant.Follow the prompts in the wizard. Si vous utilisez la gestion des enregistrements :If you are using records management:

  3. Une fois l’étiquette créée, les options permettant de la publier s’affichent. Appliquez automatiquement l’étiquette, ou enregistrez-la simplement : sélectionnez Enregistrez simplement l’étiquette pour l'instant, puis sélectionnez Terminé.After you have created the label and you see the options to publish the label, auto-apply the label, or just save the label: Select Just save the label for now, and then select Done.

  4. Répétez ces étapes pour créer d’autres étiquettes.Repeat these steps to create more labels.

Pour modifier une étiquette existante, sélectionnez-la, puis sélectionnez Modifier l’étiquette pour démarrer l’assistant à l’édition de rétention qui vous permet de modifier les descriptions d’étiquettes et les paramètres éligibles à partir de l’étape 2.To edit an existing label, select it, and then select the Edit label option to start the Edit retention wizard that lets you change the label descriptions and any eligible settings from step 2.

Étape 2 : Publier des étiquettes de rétentionStep 2: Publish retention labels

Publiez des étiquettes de rétention pour qu’elles puissent être appliquées par les utilisateurs dans les applications, telles que SharePoint et Outlook.Publish retention labels so that they can be applied by users in apps, such as SharePoint and Outlook.

  1. Dans le Centre de conformité Microsoft 365, accédez à l’un des emplacements suivants :In the Microsoft 365 compliance center, navigate to one of the following locations:

    • Si vous utilisez la gestion des enregistrements :If you are using records management:

      • Solutions > Gestion des enregistrements > > Stratégies d’étiquette onglet > Publier des étiquettesSolutions > Records management > > Label policies tab > Publish labels
    • Si vous n’utilisez pas la gestion des enregistrements :If you are not using records management:

      • Solutions > Gouvernance d’informations > Stratégies d’étiquette onglet > Publier des étiquettesSolutions > Information governance > Label policies tab > Publish labels

    Votre option ne s’affiche pas immédiatement ?Don't immediately see your option? Sélectionnez tout d’abord Afficher tout.First select Show all.

  2. Suivez les invites de l’Assistant.Follow the prompts in the wizard.

    Pour plus d’informations sur la prise en charge des emplacements par des étiquettes de rétention, voir la section Étiquettes de rétention et emplacements.For information about the locations supported by retention labels, see Retention labels and locations.

Pour modifier une stratégie d’étiquettes de rétention existante (le type de stratégie est Publier), sélectionnez-la, puis sélectionnez l’option Modifier pour démarrer la stratégie de modification de rétention.To edit an existing retention label policy (the policy type is Publish), select it, and then select the Edit option to start the Edit retention policy. Cet assistant vous permet de modifier la description de la stratégie et les paramètres éligibles à partir de l’étape 2.This wizard lets you change the policy description and any eligible settings from step 2.

Lorsque les étiquettes de rétention sont disponibles à l’applicationWhen retention labels become available to apply

Si vous publiez des étiquettes de rétention sur SharePoint ou OneDrive, celles-ci s’affichent généralement pour que les utilisateurs finaux puissent les sélectionner en un journée.If you publish retention labels to SharePoint or OneDrive, those labels typically appear for end users to select within one day. Vous pouvez toutefois autoriser jusqu’à sept jours.However, allow up to seven days.

Si vous publiez des étiquettes de rétention sur Exchange, l’affichage des étiquettes de rétention pour les utilisateurs finaux peut prendre jusqu’à sept jours, et la boîte aux lettres doit contenir au moins 10 Mo de données.If you publish retention labels to Exchange, it can take up to seven days for those retention labels to appear for end users, and the mailbox must contain at least 10 MB of data.

Par exemple :For example:

Diagramme de la date d’effet des étiquettes manuelles

Si les étiquettes n’apparaissent pas après sept jours, consultez l’État de la stratégie d’étiquette en sélectionnant celle-ci dans la page des Stratégies d’étiquette dans le centre de conformité.If the labels don't appear after seven days, check the Status of the label policy by selecting it from the Label policies page in the compliance center. Si l’état de Désactivé (erreur) s’affiche, ainsi qu’un message dans les détails des emplacements indiquant que le déploiement de la stratégie (SharePoint) ou le redéploiement de la stratégie (OneDrive) prend plus de temps que prévu, exécutez une commande PowerShell Set-RetentionCompliancePolicy pour réessayer la distribution de la stratégie :If you see the status of Off (Error) and in the details for the locations see a message that it's taking longer than expected to deploy the policy (for SharePoint) or to try redeploying the policy (for OneDrive), try running Set-RetentionCompliancePolicy, a PowerShell command, to retry the policy distribution:

  1. Se connecter à l’interface PowerShell du Centre de sécurité et conformitéConnect to Security & Compliance Center PowerShell

  2. Exécutez la commande suivante :Run the following command:

    Set-RetentionCompliancePolicy -Identity <policy name> -RetryDistribution
    

Vérifier l’état des étiquettes de rétention publiées dans ExchangeHow to check on the status of retention labels published to Exchange

Dans Exchange Online, les étiquettes de rétention deviennent disponibles pour les utilisateurs finaux à l’issue d’un processus qui s’exécute tous les sept jours.In Exchange Online, retention labels are made available to end users by a process that runs every seven days. Powershell vous permet de voir quand ce processus a été exécuté pour la dernière fois et donc de connaître sa prochaine exécution.By using PowerShell, you can see when this process last ran and therefore identify when it will run again.

  1. Connectez-vous à Exchange Online PowerShell.Connect to Exchange Online PowerShell.

  2. Exécutez les commandes suivantes :Run these commands.

    $logProps = Export-MailboxDiagnosticLogs <user> -ExtendedProperties
    
    $xmlprops = [xml]($logProps.MailboxLog)
    
    $xmlprops.Properties.MailboxTable.Property | ? {$_.Name -like "ELC*"}
    
    

In the results, the ELCLastSuccessTimeStamp (UTC) property shows when the system last processed your mailbox. If it has not happened since the time you created the policy, the labels are not going to appear. To force processing, run Start-ManagedFolderAssistant -Identity <user>.

If labels aren't appearing in Outlook on the web and you think they should be, make sure to clear the cache in your browser (CTRL+F5).

How to apply published retention labels

Use the following sections to learn how published retention labels can be applied in apps:

In addition, when you use SharePoint Syntex and publish retention labels to SharePoint locations, you can apply a retention label to a document understanding model so that identified documents are automatically labeled.

After content is labeled, see the following information to understand when the applied label can be removed or changed: Only one retention label at a time.

Manually apply retention labels

End users, as well as administrators, can manually apply retention labels from the following locations:

  • Outlook and Outlook on the web

  • OneDrive

  • SharePoint

  • Microsoft 365 groups (both the group site and group mailbox in Outlook on the web)

Use the following sections to understand how to apply retention labels.

Applying retention labels in Outlook

To label an item in the Outlook desktop client, select the item. On the Home tab on the ribbon, click Assign Policy, and then choose the retention label.

Assign Policy button

You can also right-click an item, click Assign Policy in the context menu, and then choose the retention label.

After the retention label is applied, you can view that retention label and what action it takes at the top of the item. If an email has a retention label applied that has an associated retention period, you can see at a glance when the email expires.

Applying a default retention label to an Outlook folder

You can apply retention labels to Outlook folders as a default label that can be inherited by messages in that folder. Right-click the folder, select Properties, the Policy tab, and select the retention label you want to use as that folder's default retention label.

When you use a a standard retention label as your default label for an Outlook folder:

  • All unlabeled items in the folder have this retention label applied.

  • The inheritance flows to any child folders and items inherit the label from their nearest folder.

  • Items that are already labeled retain their retention label, unless it was applied by a different default label.

  • If you change or remove the default retention label for the folder: Existing retention labels applied to items in that folder are also changed or removed only if those labels were applied by a default label.

  • If you move an item with a default retention label from one folder to another folder with a different default retention label: The item gets the new default retention label.

  • If you move an item with a default retention label from one folder to another folder with no default retention label: The old default retention label is removed.

When labels are applied that aren't standard retention labels but mark items as records (or regulatory records), these labels can only be manually changed or removed.

Applying retention labels in Outlook on the web

To label an item in Outlook on the web, right-click the item > Assign policy > choose the retention label.

Assign policy menu in Outlook on the web

After the retention label is applied, you can view that retention label and what action it takes at the top of the item. If an email is classified and has an associated retention period, you can know at a glance when the email will expire.

Label assigned to email in Outlook on the web

As with the desktop version of Outlook on the web, you can also apply retention labels to folders. Right-click the folder, select Assign policy, and change Use parent folder policy to the retention label you want to use as that folder's default retention label.

Applying retention labels in OneDrive and SharePoint

To label a document (including OneNote files) in OneDrive or SharePoint, select the item > in the upper-right corner, choose Open the details paneInformation pane icon > Apply retention label > choose the retention label.

You can also apply a retention label to a folder or document set, and you can set a default retention label for a document library.

Apply label list for an item in SharePoint

After a retention label is applied to an item, you can view it in the details pane when that item's selected.

Applied label shown in Details pane

For SharePoint, but not OneDrive, you can create a view of the library that contains the Labels column or Item is a Record column. This view lets you see at a glance the retention labels assigned to all items and which items are records. Note, however, that you can't filter the view by the Item is a Record column. For instructions how to add columns, see Show or hide columns in a list or library.

Applying retention labels in Microsoft 365 groups

When you publish retention labels to Microsoft 365 groups (formerly Office 365 groups), the retention labels appear in both the group site and group mailbox in Outlook on the web. The experience of applying a retention label to content is identical to that for email and documents.

To retain content for a Microsoft 365 group, use the Microsoft 365 Groups location. Even though a Microsoft 365 group has an Exchange mailbox, a retention policy that includes the entire Exchange location won't include content in Microsoft 365 group mailboxes.

In addition, it's not possible to use the Exchange location to include or exclude a specific group mailbox. Although the Exchange location initially allows a group mailbox to be selected, when you try to save the retention policy, you receive an error that "RemoteGroupMailbox" is not a valid selection for the Exchange location.

First, create and configure the sensitivity labels that you want to make available for apps and other services. For example, the labels you want users to see and apply from Office apps.

Then, create one or more label policies that contain the labels and policy settings that you configure. It's the label policy that publishes the labels and settings for your chosen users and locations.

Applying a default retention label to all content in a SharePoint library, folder, or document set

This method requires retention labels to be published to a retention label policy.

In addition to letting people apply a retention label to individual documents, you can also apply a default retention label to a SharePoint library, folder, or document set. In this scenario, documents in that location can inherit your selected default retention label. Although the same label is applied, each document will be retained and deleted separately, according to the start of the retention period setting in the label.

For a document library, the default label configuration is done on the Library settings page for a document library. When you choose the default retention label, you can also choose to apply it to existing items in the library.

For example, if you have a retention label for marketing materials, and you know a specific document library contains only that type of content, you can make the Marketing Materials retention label the default label for all documents in that library.

Apply label option on library Settings page

Label behavior when you use a default label for SharePoint

For standard retention labels that you apply as a default retention label to a library, folder, or document set:

  • All new, unlabeled items in the container will have this retention label applied.

  • For folders, the inheritance flows to any child folders and items inherit the label from their nearest folder.

  • If you selected the option to apply the default label to existing items: Items that are already labeled retain their retention label, unless it was applied by a different default label.

  • If you change the default retention label for the container: Existing retention labels applied to items in that container are changed only if you selected the option to apply the default label to existing items and those labels were applied by a default label.

  • If you remove the default retention label for the container: Items retain their labels.

  • If you move an item with a default retention label applied from one container to another container: The item keeps its existing default retention label, even if the new location has a different default retention label. Only if you then change the default label for this new location can the moved item inherit the default label from its current location.

When labels are applied that aren't standard retention labels but mark items as records (or regulatory records), these labels can only be manually changed or removed.

Automatically applying a retention label to email by using rules

In Outlook, you can create rules to apply a retention label.

For example, you can create a rule that applies a specific retention label to all messages sent to or from a specific distribution group.

To create a rule, right-click an item > Rules > Create Rule > Advanced Options > Rules Wizard > apply retention policy.

Rules wizard with option to apply retention policies

Although the UI refers to retention policies, it's your retention labels that display here and can be selected, not your retention policies.

Updating retention labels and their policies

When you edit a retention label or retention label policy, and the retention label or policy is already applied to content, your updated settings will automatically be applied to this content in addition to content that's newly identified.

Some settings can't be changed after the label or policy is created and saved, which include:

  • The retention label and policy name, and the retention settings except the retention period. However, you can't change the retention period when the retention period is based on when items were labeled.
  • The option to mark items as a record.

Deleting retention labels

You can delete retention labels that aren't currently included in any retention label policies, that aren't configured for event-based retention, or mark items as regulatory records.

For retention labels that you can delete, if they have been applied to items, the deletion fails and you see a link to content explorer to identify the labeled items.

However, it can take up to two days for content explorer to show the items that are labeled. In this scenario, the retention label might be deleted without showing you the link to content explorer.

Locking the policy to prevent changes

If you need to ensure that no one can turn off the policy, delete the policy, or make it less restrictive, see Use Preservation Lock to restrict changes to retention policies and retention label policies.

Next steps

Event-based retention is another supported scenario for retention labels. For more information, see the following articles: