问题
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