Forum Discussion
TonyRedmond
Jul 10, 2024MVP
Practical Graph: Assign Sensitivity Labels to SharePoint Online Files
Microsoft released Graph APIs to read and assign sensitivity labels in 2023. At the time, it was difficult to work with the assignSensitivityLabel API. Now it's easier, and this article explains how to use PowerShell with the API to assign labels to files in a SharePoint Online document library.
2 Replies
- joetengaCopper ContributorTony, is an E5 level license required to assign the Sensitivity Label using the Graph API?
- The documentation https://learn.microsoft.com/en-us/graph/api/driveitem-assignsensitivitylabel?view=graph-rest-1.0&tabs=http doesn't make any mention of licensing requirements. The action is the same as if a user assigned a label to a file, and Office 365 E3 covers that action.