Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
12,113 questions
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
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\"}",
Hi @Xinzhao Zhang
This API doesn't currently support application permissions, use delegated permissions instead.
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.