Information Protection Labels and OneDrive

Copper Contributor


Recently we implemented the security and compliance center protections (AIP/MIP/DLP). One issue we have run into, that is slightly self-inflicted. We had to change two of our labels to remove the encryption option. However I have found out that when you do that, any files that were already labeled using that label, will retaing the RMS protection template and protection.

I can remove the protection on-prem, but the big issue is now doing so to any/all files in our users OneDrive locations. OneDrive is used for folder redirection for our end-users documents folders. 

Is there a way to essentially run Set-AIPFileLabel -Remove Protection on OneDrive files?

2 Replies
Greetings @APMcWilly13,

Sorry I don't have an answer for relabeling down at scale. MS doco here says "Automatic labeling will replace a lower priority sensitivity label that was automatically applied, but not a higher priority label."

I infer that the problem is that users want to share/collaborate on a doc and the other party cannot open the encrypted content, or is there another problem this label is creating? With that problem statement in mind, since it became possible to co-author encrypted docs, we encrypt all files by default. Users can then override the label by exception. Is enabling co-authoring a possible solution to your problem while leaving the label in place? Apologies if I have misunderstood the specifics of your problem.

Thanks, Ash
I don't see an equivalent of that command for SPO. In the PS cmdlet reference guide for SPO, there's only one label related removal cmdlet.
According to this doc
A global admin or SharePoint admin can run the Unlock-SPOSensitivityLabelEncryptedFile cmdlet, which removes both the sensitivity label and the encryption.

1: go here and install the required PS modules for SharePoint Online.

2: This command will show you all the OneDrive sites within your Tenant, which gives you the path to docs in OD.
Get-SPOSite -IncludePersonalSite $true -Filter "Url -like ''" |ft

3: Here is where the wheels fall off. This command does not support wildcard characters. This command will remove the label from ONE doc. Sub out the FileUrl with a path from your list of OD sites.
Unlock-SPOSensitivityLabelEncryptedFile -FileUrl " Documents/Doc1.docx" -JustificationText "Need to decrypt this file"