Graph retention label api returns failed to contact DataInsights in EOP error with application permission

Xinzhao Zhang 20 Reputation points
2024-09-20T10:38:43.3666667+00:00

We are getting 500 error from https://graph.microsoft.com/v1.0/security/labels/retentionLabels when we use application permission. The error is as below. And the https://graph.microsoft.com/v1.0/security/labels/retentionLabels/{LabelId} Api works ok.

        "message": "{\"ErrorCode\":\"UnknownError\",\"Message\":\"Failed to contact DataInsights in EOP - Tenant = xxxx. Exception = DataInsights command(GET) FAILED - Unauthorized. TargetServer = SA2PR11MB5177.namprd11.prod.outlook.com\"}",
Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
12,113 questions
0 comments No comments
{count} votes

Accepted answer
  1. CarlZhao-MSFT 42,046 Reputation points
    2024-09-23T07:41:03.0766667+00:00

    Hi @Xinzhao Zhang

    This API doesn't currently support application permissions, use delegated permissions instead.

    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.

    1 person found this answer helpful.
    0 comments No comments

0 additional answers

Sort by: Most helpful

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.