Skip to main content

How to apply modern retention labels to libraries and folders in SharePoint Online

I recently blogged about modern retention labels and how you can create labels, publish them to sites, and then have them available for users to apply to files. This though, assumes that end users apply the label manually to every file. However, in reality, this is not sometimes practical, especially if you are dealing with hundreds or thousands of files. Luckily, we have a way to apply retention labels to libraries and folders, thus automatically tagging and setting retention for the files inside.

How to create Retention Labels

Before we can apply the labels to the folders and libraries, we have to create them first in the Compliance Center. I documented this process previously. So please follow instructions in this post to create the retention labels and publish them to the desired sites.

Apply retention labels to libraries and folders

How to apply retention labels to the library

If you want to apply a retention label to the entire library and all of its contents, please follow these steps:

  1. Navigate to the document library that you want to apply a retention label to, then Gear Icon > Library Settings
  2. Click on Apply label to items in this list or library.
  3. From the drop-down, choose the retention label you want to apply to the library. You optionally check the box Apply label to existing items in the library – this will apply the labels to items you have uploaded previously. Click Saveretention labels to libraries and folders
  4. This shows the settings I have chosen.
  5. At the library level, make sure to add Retention label metadata to the view (so you can see the level applied)
  6. And in a short while, you will notice the Retention label assigned to the files we already had in the library. All the new files uploaded to the library will automatically be assigned the retention label as well.retention labels to libraries and folders

How to apply retention labels to the folder

Likewise, you can apply the retention label to just a specific folder and not the whole library.

  1. Click the checkbox next to a folder, then “i” in a circle, then choose the proper retention label from the available choices.retention labels to libraries and folders
  2. You will now notice the folder getting the retention label.
  3. All the files inside the folder will also be tagged accordingly.retention labels to libraries and folders

Notes:

  1. Retention labels can be overwritten at the file level (i.e., removed or assigned an alternate retention label) if need be
  2. If you move a file from one folder with its retention period to another folder with another retention period, it keeps the original retention period that was set at the source.
  3. Check out this article from Microsoft for the latest changes and updates to this functionality.

You may also like

How to list unique permissions for files and folders on a SharePoint site

October 22nd, 2020

You may also like

6 ways to access documents from Microsoft Teams

October 1st, 2020

You may also like

6 ways to archive documents in SharePoint

September 22nd, 2020

Need SharePoint Help?

Hourly consulting, training and configuration services are available

Learn More