Microsoft Graph API throwing exception

你。 提交于 2020-05-17 07:05:53

问题


since two days I get an exception calling :

var usersInGroup = await graphClient.Groups[groupid].Members.Request().GetAsync();

{
  "error": {
    "code": "Authorization_RequestDenied",
    "message": "Insufficient privileges to complete the operation.",
    "innerError": {
      "request-id": "4069215a-945f-4cc0-abbf-132d703f55ae",
      "date": "2020-04-28T08:18:49"
    }
  }
}

This call always worked before and proper permissions are given and consented.

Is there any known issue with this API / service ? Any easy way to debug / monitor calls in Azure portal ?

best regards Rainer


回答1:


There seems like an Application permission Group.Selected that affects the calling of this API endpoint /memberOf. Removing this permission will fix the issue.




回答2:


just saw your problem - I'm having the same issue: MS-Graph request: insufficient privileges You may want to change your tag to 'microsoft-graph' so that it is found easier.



来源:https://stackoverflow.com/questions/61475750/microsoft-graph-api-throwing-exception

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!