Share via

Error Calling Microsoft Graph API - assignSensitivityLabel

Karam 0 Reputation points
2024-02-07T17:15:58.59+00:00

Hello, I'm trying to call the assignSensitivityLabel API, but getting the error response below. We have sensitivity labels published and we can set them up in excel docs. Also I can use the API call extractSensitivityLabels but couldn't yet make assignSensitivityLabel to work for some reason.https://learn.microsoft.com/en-us/graph/api/driveitem-assignsensitivitylabel Any ideas to help investigating?

Error: 422, {"error":{"code":"notSupported","message":"Sensitivity label cannot be assigned due to unsupported feature.","innerError":{"code":"unprocessableEntity"}}}
Microsoft Security | Microsoft Entra | Microsoft Entra ID
Microsoft Security | Microsoft Graph

1 answer

Sort by: Most helpful
  1. Givary-MSFT 35,786 Reputation points Microsoft Employee Moderator
    2024-02-09T06:20:44.4333333+00:00

    @Karam Thank you for reaching out to us, As I understand you are assigning a label to the excel docs via assignSensitivityLabel API.

    Reviewed this documentation which you shared - https://learn.microsoft.com/en-us/graph/api/driveitem-assignsensitivitylabel?view=graph-rest-1.0&tabs=http its mentioned this API is part of Microsoft SharePoint and OneDrive APIs that perform advanced premium administrative functions, that could be the reason why you are unable to leverage on excel, try to perform the similar task for the SharePoint and can check if it is getting applied or not.

    Let me know if you have any further questions, feel free to post back.

    Was this answer helpful?

    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.