Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
2,056 questions
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Hi all,
when trying to assign a sensitivity label by the Graph API endpoint
`/drives/${listDdriveId}/items/${itemId}/assignSensitivityLabel`
I get an error, when the last operation on this item/document was performed by an app (Editor 'SharePoint App'):
"error": {
"code": "notSupported",
"message": "Sensitivity label cannot be assigned since sensitivity label owner email cannot be computed for this file. Please retry after you have touched the file.",
"innerError": {
"date": "2023-09-06T08:03:45",
"request-id": "2d02b344-fafc-48ae-8983-d9f197c21850",
"client-request-id": "..."
}
}
After I update the metadata of the item within a normal user context I can set the sensitivity label successfully with the Graph API endpoint (called by an app).
Unfortunately this is not possible in my scenario.
Is there a way to circumvent this error?
Thanks and best regards.
Sebastian