Tool

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.

SharePoint

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

NameTypeDescription
documentLibraryIdrequiredstring

The document library id also known as driveId of the document library

fileIdrequiredstring

The file id also known as driveItemId of the file

sensitivityLabelIdrequiredstring

Required. ID of the sensitivity label to be assigned, or empty string to remove the sensitivity label.

assignmentMethodstring

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.

justificationTextstring

Optional. Justification text for audit purposes, and is required when downgrading/removing a label.

Try Needle today

Streamline AI productivity at your company today

Join thousands of people who have transformed their workflows.

Agentic workflowsAutomations, meet AI agents
AI SearchAll your data, searchable
Chat widgetsDrop-in widget for your website
Developer APIMake your app talk to Needle
    Needle LogoNeedle
    Like many websites, we use cookies to enhance your experience, analyze site traffic and deliver personalized content while you are here. By clicking "Accept", you are giving us your consent to use cookies in this way. Read our more on our cookie policy .