An API that connects multiple Microsoft services, enabling data access and automation across platforms
There is currently no Microsoft Graph API that can configure the Default sensitivity label for a SharePoint document library.
That library-level setting (Library Settings → Default sensitivity labels) is not exposed via Graph. Graph only supports:
- Reading sensitivity labels
- Assigning labels to individual files/items (for example,
assignSensitivityLabel)
The SharePoint UI sets this using a SharePoint list property called DefaultSensitivityLabelForLibrary, which is only configurable via:
- SharePoint REST API, or
- PnP PowerShell (
Set-PnPList -DefaultSensitivityLabelForLibrary)
If you need to automate this today, you must use SharePoint REST or PnP. Graph cannot do this at the library level at this time.
https://learn.microsoft.com/en-us/graph/api/resources/security-sensitivitylabel?view=graph-rest-1.0