Set sensitivity label on file
SetSensitivityLabelOnFile is a powerful Microsoft 365 SharePoint tool designed to assign or modify sensitivity labels on files within SharePoint document libraries. This ensures enhanced data protection and compliance by managing file-level sensitivity directly via file and library IDs.
Features
- Assign sensitivity labels to specific files using fileId and documentLibraryId parameters.
- Supports automatic, standard, and privileged methods for label assignment to suit varied organizational policies.
- Allows removal or downgrading of sensitivity labels with mandatory justification for auditing purposes.
- Integrated directly with Microsoft 365 SharePoint, facilitating seamless management within familiar environments.
- Ensures compliance and auditing by capturing justification text during label changes, enhancing traceability.
Benefits
- Enhances data security by accurately classifying files according to sensitivity.
- Simplifies management of file protection through direct API control over sensitivity labels.
- Improves organizational compliance with regulatory standards by enforcing label assignments.
- Provides audit trail for label changes to support governance and accountability.
- Reduces risk of data leaks or unauthorized access by maintaining clear sensitivity labeling.
Description
Use this tool for SharePoint document libraries or when you need to specify a drive.Set the sensitivity label of a file (specified by the fileId also called driveItemId) from the specified Document Library (also referred to as a Drive).
Parameters
5 parameters
| Name | Type | Description |
|---|---|---|
| documentLibraryIdrequired | string | The document library id also known as driveId of the document library |
| fileIdrequired | string | The file id also known as driveItemId of the file |
| sensitivityLabelIdrequired | string | Required. ID of the sensitivity label to be assigned, or empty string to remove the sensitivity label. |
| assignmentMethod | string | Optional. The assignment method of the label on the document.Indicates whether the assignment of the label was done automatically, standard, or as a privileged operation (the equivalent of an administrator operation).Possible values are standard, privileged, auto and unknownFutureValue. |
| justificationText | string | Optional. Justification text for audit purposes, and is required when downgrading/removing a label. |