List of sensitivityLabels API failed with CompliancePolicyParserException

Narinder Paul 46 Reputation points
2025-02-11T11:59:47.6866667+00:00

Getting CompliancePolicyParserException while getting sensitivityLabels

API :- https://graph.microsoft.com/beta/security/informationProtection/sensitivityLabels> Document Link : https://learn.microsoft.com/en-us/graph/api/security-informationprotection-list-sensitivitylabels?view=graph-rest-beta&tabs=http

{"code":"generalException","message":"There was an internal server error while processing the request.","innerError":{"code":null,"message":"Failed to parse compliance policy Inner exception: [CompliancePolicyParserException: 'Empty 'description' tag in label ID xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxx']

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
13,319 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Rajat Vashistha-MSFT 1,320 Reputation points Microsoft External Staff
    2025-02-17T10:32:43.2833333+00:00

    Hi Narinder Paul,

    Thanks for reaching out to Microsoft!

    Could you please check the sensitivity labels in the Purview Portal to ensure they have valid descriptions and have been applied successfully?

    Additionally, try the following steps using the Postman Application. Assign the "InformationProtectionPolicy.Read.All" application permission and run the Graph API call below to check if still getting the same error?

    GET https://graph.microsoft.com/beta/users/{UserPrincipalName}/security/informationProtection/sensitivityLabels 
    

    Note: APIs under the /beta version in Microsoft Graph are subject to change. Use of these APIs in production applications is not supported. To determine whether an API is available in v1.0, use the Version selector.

    Hope this helps.

    If the answer is helpful, please click Accept Answer and kindly upvote. If you have any further 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.