Access Denied when querying Teams in Microsoft Graph

不羁岁月 提交于 2020-01-04 06:15:28

问题


Whenever I query the Teams endpoint in Microsoft Graph:

GET https://graph.microsoft.com/beta/teams/{id}

I get the following error:

AccessDenied - Failed to execute Skype backend request GetThreadRequest.

The permissions are set according to the documentation. (Group.Read.All - delegated permission)

Querying https://graph.microsoft.com/beta/groups/{id} is working while with the same access token https://graph.microsoft.com/beta/teams/{id} isn't.

I tried it with my own application and in the Graph Explorer. Both ways didnt't work for me. However using Graph Explorer with the sample account is working. Is there maybe another permission needed which is not yet documented?


回答1:


Currently it's a requirement that the person using the Graph APIs (and the PowerShell cmdlets that use them under the covers) must be a member of the team whose information they are trying to retrieve. This is the second-most popular ask for users of our cmdlets, and we are close to resolving it. We expect this to be fixed by the end of September 2018, with write APIs/commands coming a few weeks later than read APIs/commands.



来源:https://stackoverflow.com/questions/51943098/access-denied-when-querying-teams-in-microsoft-graph

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