Forum Discussion
Automatically applying labels to sites/site collections
- Aug 17, 2017
The answer is yes. What you're looking for are classification labels (see https://www.petri.com/office-365-data-governance). You can apply these to a document library in three ways:
1. Make it the default that a label applies to all items in the library (and sub-folders).
2. Select each item and add the appropriate label.
3. Use an auto-label policy to find the documents you want to protect and apply a label. This requires E5 licenses.
I suspect that option 1 is what you need.
To Dean's point, a gap currently exists between Office 365 classification labels and those used by Azure Information Protection (AIP). I suspect, but don't know, that the gap will close and we might hear about this at Ignite.
TonyRedmonddo you know if there is a way to automatically enable the classification labels in many libraries that have been migrated from SP on-premises?
Auto-label policies are the only automatic method, but you'd have to be able to identify the target documents with a keyword. I think you might have to edit the settings of each library to set the right label as the default for all existing and new documents.
- Swee Ching HoFeb 12, 2018Copper Contributor
With Auto-apply label, can we use a wildcard "*" with the option of "Apply label to content that contains specific words or phrases"? This is required to blanket SharePoint to have the base retention policy in place.
And if that is possible, would the user able to selectively change the labels on the documents which were auto-applied by the wildcard rule?
- TonyRedmondFeb 12, 2018MVP
"*" is not a valid search keyword. I don't think you can use it to search for everything (at least, I couldn't just now).
And users always have the ability to override auto-applied labels. The logic here is that people know better than computers how important content is.
- Andreas AchterholtAug 23, 2018Former Employee
Hi all,
see the blog about "Configuring default Office 365 Labels using PowerShell"
http://www.myfatblog.co.uk/index.php/2018/05/configuring-default-office-365-labels-using-powershell/
Today is one and the only way you can do this
Andreas
- MOD AdministratorJan 05, 2018Copper Contributor
Do you know how to set default label for document library through code?
TonyRedmond wrote:
Auto-label policies are the only automatic method, but you'd have to be able to identify the target documents with a keyword. I think you might have to edit the settings of each library to set the right label as the default for all existing and new documents.
- TonyRedmondJan 05, 2018MVP
The classification label is known as the compliancetag in terms of the schema, so I guess you can use whatever tool you like to interact with documents (I don't do this, so I can't advise - maybe some of the SharePoint gurus can say what's best). You can also define a default label for a library to make sure that all existing and new documents get it.