Which license type is required to assign Sensitivity Labels in MS purview using Graph explorer

Ludmila Rinuado 0 Reputation points
2024-07-25T08:59:58.2166667+00:00

We are trying to extract and assign Sensitivity Labels in MS purview(Onedrive data store) using Graph explorer API. Able to extract the list of Sensitivity Labels attached to the drive-item id, but cannot assign one. Here are the details

Endpoint : POST https://graph.microsoft.com/v1.0/drives/{drive-id}/items/{driveItem-id}/microsoft.graph.assignSensitivityLabels
Error message : "code": "paymentRequired",        
"message": "Payment Required. Ensure that your application is able to call this premium API.For details see https://aka.ms/graph-metered-overview"
As Microsoft Purview combines the former Azure Purview and Microsoft 365 compliance solutions,

  1. What license type is required to access the above endpoint? Although, we have an E5 license.
  2. If the license we are using is sufficient then any specific roles/permissions are required that we are missing?
Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
13,697 questions
Microsoft Purview
Microsoft Purview
A Microsoft data governance service that helps manage and govern on-premises, multicloud, and software-as-a-service data. Previously known as Azure Purview.
1,624 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. CarlZhao-MSFT 46,366 Reputation points
    2024-07-26T09:27:05.3566667+00:00

    Hi @Ludmila Rinuado

    This is a metered and protected API. Before calling this API, you must enable metered APIs and services in Microsoft Graph.

    User's image

    Hope this helps.

    If the reply is helpful, please click Accept Answer and kindly upvote it. If you have additional questions about this answer, please click Comment.

    0 comments No comments

Your answer

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