Aug 17 2017
03:57 AM
- last edited on
Feb 01 2023
10:51 AM
by
TechCommunityAP
Aug 17 2017
03:57 AM
- last edited on
Feb 01 2023
10:51 AM
by
TechCommunityAP
It is possible to automatically assign labels to all documents in a SharePoint document library. I want to take it a step further and assign labels (e.g. "Confidential") to all documents in a site, no matter what document library they are stored in. Is that possible?
Example: A site is enabled for external access by guest users and the site owner has declared that the site may contain confidential contents. All documets uploaded to or created in this site will therefore automatically be assigned the "Confidential" label. This behavior cannot be altered by the site owner.
Also, it would be nice if content that are assigned a specific label, automatically gets assigned a set of policies that prevent certain actions like download, printing ect.
And another thing - it would also be nice if it was possible to specify that all site collections that have enabled external access always automatically will be assigned a set of policies that restrict the actions possible on the contents.
Is any of this possible via PowerShell?
Any thoughts?
Thanks
Jakob
Aug 17 2017 05:35 AM
There are 2 types of labels: Office 365 labels and Azure Information Protection labels. Which one do you want to apply? The long term purpose will help to determine the appropriate type.
You can automatically apply Azure IP labels to files that contain specific contents, see https://docs.microsoft.com/en-us/information-protection/deploy-use/configure-policy-classification (this does require the Azure Information Protection Premium P2 license, which is available throught the EMS E5 package).
Aug 17 2017 05:53 AM
SolutionThe 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.
Aug 31 2017 12:35 PM
@Tony Redmonddo you know if there is a way to automatically enable the classification labels in many libraries that have been migrated from SP on-premises?
Aug 31 2017 12:39 PM
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.
Jan 05 2018 08:50 AM
Do you know how to set default label for document library through code?
@Tony Redmond 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.
Jan 05 2018 08:54 AM
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.
Feb 11 2018 07:17 PM
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?
Feb 12 2018 02:07 AM
"*" 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.
Aug 23 2018 02:23 AM
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
Aug 17 2017 05:53 AM
SolutionThe 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.