Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Microsoft Purview Information Protection supports labeling and classification services. Users and applications can apply the following to supported files:
- Classification only by applying a label
- Classification and protection by applying a label
- Protection only
This article explains how the SDK handles attempts to apply a label to a file that has pre-existing protection. When the file has pre-existing protection from a label or another source, the SDK handles the application of a new label in the following scenarios.
Label-based protection when label metadata is stripped
If a file has a label that applied protection, the SDK can resolve the file's protection to that label. If a user who has Edit permissions on the file removes the label metadata either accidentally or maliciously, the protection remains. The next time the SDK interacts with the file, it looks at the protection data, resolves that protection template to the original label, and reapplies the label. This SDK behavior is a safety mechanism for information protection in case someone tampers with the label metadata.
Custom-protection and label applications
If the file has some form of protection applied through an RMS template and a user tries to apply a label to the file, the SDK first tries to resolve the original protection to a label. If the SDK can't resolve the protection to a label, it can't evaluate whether the new protection sensitivity level is more restrictive or permissive than the original protection sensitivity. The SDK doesn't apply the new label to the file.
User-defined permissions
If a file has a label that applied user-defined protection, the label applies protection to the file. In this case, the SDK can't resolve the protection to an RMS template. If a user tries to apply a new label to the file now, the SDK treats the action like the custom-protection scenario and doesn't apply the new label to the file.