Share via

How to add a sensitivity label to SharePoint document library using GraphAPI

Harsha Jha 61 Reputation points
2026-03-31T01:24:10.1233333+00:00

In the SharePoint UI, I can configure a default sensitivity label for a document library by going to Library Settings → Default sensitivity labels and selecting a label (e.g., General \ Anyone (unrestricted)). This applies the label automatically to all newly created or edited Office files within that library.

I'd like to automate this via the Microsoft Graph API instead of doing it manually through the UI.

I am unable to find Graph API request URL to run the API
User's image

Microsoft Security | Microsoft Graph
0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.