Skip to main content
< All Articles

Set up Document Retention via Retention Labels in SharePoint Online

Posted on March 14, 2024
SharePoint

I recently published an article on creating and publishing retention policies on SharePoint sites. However, in that scenario,  the assumption was that all content on a site would follow the same retention policies. However, what if you have various types of documents that need to be retained for different periods of time? In this case, we need to rely on Retention Labels. By tagging content with different retention labels, we can apply different and unique retention schedules to different files and folders. And that is what I would like to explain in this article.

3 Steps to Set up Document Retention via Retention Labels

There are three steps involved when it comes to setting up document retention via retention labels in SharePoint.

  • Step 1: Create Retention Labels (specify the retention period)
  • Step 2: Publish Retention Policies (specify which sites the retention labels will be published to)
  • Step 3: Tag the content with Retention Labels

Step 1: Create Retention Labels

The first step in the process is to create a Retention Label. The label will define the retention period + retention behavior.

  1. From Microsoft 365 App Launcher, click ComplianceCreateretentionpolicypurview1
  2. Under Data lifecycle management, click Microsoft 365Createlabelretentionpoliciessharepointonline19
  3. Click on the Labels Tab. This is where you can create/define retention labels.Createlabelretentionpoliciessharepointonline1
  4. Click Create a labelRetention Labels in SharePoint Online
  5. Give the Label the name. The label name will be visible to users when they tag the documents. You can also provide an optional description for the users and admins. Those fields allow for more text, and the text will be visible as a tooltip when the users apply the label to the file or folder. Click Next.Createlabelretentionpoliciessharepointonline3
  6. On the next screen, you can define label settings. In our case, we are going to proceed with Retain items forever or for a specific period. Click Next.Createlabelretentionpoliciessharepointonline4
  7. On the next screen, we will define the Retention Period. In addition, you have to specify from which date the clock starts to count the retention. I chose When items were created. Other options are also available, and I plan to blog about those later. Click Next.Retention Labels in SharePoint Online
  8. Next, we need to choose what happens after the retention period expires. I plan to publish a separate article on all available options, but for the time being, we will select the last one: Deactivate retention settings. Essentially, nothing will happen at the end of the retention period – the documents will remain in the same location and will not be removed or deleted.Retention Labels in SharePoint Online
  9. On the final screen, you can review the settings, and if everything looks good, click Create label.Createlabelretentionpoliciessharepointonline6
  10. You will then receive a confirmation message. It will offer you to continue the process and publish the labels right away, but in my case, I will choose to Do Nothing, and we will publish the labels in the next step.Retention Labels in SharePoint Online
  11. The label will appear in the dashboard/list of labelsCreatelabelretentionpoliciessharepointonline8

Step 2: Publish Retention Policies

Now that the label has been created, we can now publish it. When we publish the label, we make it available to certain SharePoint sites, so that users can apply those labels to content on those sites.

    1. While in the Data lifecycle management screen, click on Label policies.Createlabelretentionpoliciessharepointonline9
    2. Click on Publish labels.Createlabelretentionpoliciessharepointonline20
    3. On the next screen, you need to choose a label you would like to publish. Once chosen, click Next.Retention Labels in SharePoint Online
    4. The next screen is optional and really only applies to large organizations. This is where you can select Admin Units. Admin Units make sense if you have large organizations and have different compliance officers responsible for different regions/SharePoint sites. To learn more about Admin Units, check out this article from Microsoft.Createlabelretentionpoliciessharepointonline11
    5. On the next screen, you must choose the Retention Policy type to create. You can choose between Adaptive and Static Scope. With Static Scope, you will have to choose specific Sites/URLs to publish the labels to. With Adaptive Policy Scope, you will be able to specify sites based on site attributes like Site Title, Site URL, etc. I have written a separate article on the Adaptive Scope, which you can read here.Createlabelretentionpoliciessharepointonline12
    6. For this exercise, I chose Static Policy Scope. On the next screen, you can choose locations to publish. You can publish labels to not just SharePoint Sites, but also to OneDrive Accounts and Exchange Mailboxes. In our case, I am publishing the label to a Team Site. Click Edit to choose a specific site(s) to publish the label to.Retention Labels in SharePoint Online
    7. Once the Site is chosen, click Done.Createlabelretentionpoliciessharepointonline14
    8. Click Next to proceed to the next screen.Createlabelretentionpoliciessharepointonline15
    9. Finally, we just need to give the Policy a name. Click Next.Retention Labels in SharePoint Online
    10. On the final screen, you just review the settings you have set up. If all looks good, click Submit.Createlabelretentionpoliciessharepointonline17
    11. You will then get a confirmation message telling you it might take a week to have the labels published. In reality, it might be just a day or two.Createlabelretentionpoliciessharepointonline18

Step 3: Tag the content with retention Labels

  1. Prior to tagging the documents with retention labels, I highly recommend that you add the below 3 labels to the library view: Retention label, Retention label Applied, and Label applied by. Those three columns will provide additional information on whether the labels are applied or not to a given document.Createlabelretentionpoliciessharepointonline21
  2. To tag a document, click on the checkbox next to a document, then “i” in a circle, then choose the proper retention label under the Apply label section.Retention Labels in SharePoint Online
  3. The document will now be tagged with a label.Retention Labels in SharePoint Online

How do retention labels work?

  • You can apply the retention label to both a single document or an entire folder.Createlabelretentionpoliciessharepointonline24
  • If you apply a retention label to a folder, it will also apply/propagate to the contents of the folder (other files and folders inside the labeled folder).Createlabelretentionpoliciessharepointonline25
  • Users can continue editing files and folders as they normally do. That said, if they delete a document, it will go to the Recycle Bin as well as a Preservation Hold Library, which is a hidden Document Library only available to Site Owners/Admins (more on this below).
  • If users try to delete a labeled folder that is not empty, you would first need to delete the contents of the folder first. Otherwise, you will receive the following message: If attempting to delete a non-empty folder, it is possible that it is on hold.Retention Labels in SharePoint Online

How to access Preservation Hold Library

As mentioned above, once at least one labeled document is deleted, a Preservation Hold Library is created on a SharePoint site. It is hidden and not accessible to regular team members. It is only accessible by Site Owners/Site Admins. To access the Preservation Hold Library, you need to type in /PreservationHoldLibrary at the end of the Site URL.

Retention Labels in SharePoint Online

The Preservation Hold Library holds the documents that have been deleted for a period of retention in case they need to be recovered. There are many other nuances about this library, which I will try to summarize in a future article.

About Me

I’m Greg Zelfond, a U.S. based SharePoint consultant, and I provide affordable out-of-the-box SharePoint consulting, training, and configuration assistance to small and medium-sized businesses all over the world.

Need help?