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,
- What license type is required to access the above endpoint? Although, we have an E5 license.
- If the license we are using is sufficient then any specific roles/permissions are required that we are missing?