在Microsoft Graph中查询团队时访问被拒绝 [英] Access Denied when querying Teams in Microsoft Graph

查看:75
本文介绍了在Microsoft Graph中查询团队时访问被拒绝的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

每当我在Microsoft Graph中查询Teams端点时:

Whenever I query the Teams endpoint in Microsoft Graph:

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

我收到以下错误:

AccessDenied - Failed to execute Skype backend request GetThreadRequest.

根据文档设置权限. (Group.Read.All-委派权限)

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

查询 https://graph.microsoft.com/beta/groups/{ id} 正在使用相同的访问令牌 https://graph .microsoft.com/beta/teams/{id} 不是.

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.

我在自己的应用程序和Graph Explorer中尝试了它.两种方式都不适合我.但是,使用带有示例帐户的Graph Explorer是可行的.

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?

推荐答案

当前,要求使用Graph API(以及在幕后使用它们的PowerShell cmdlet)的人员必须是其信息的团队成员正在尝试检索.这是向我们的cmdlet用户提供的第二受欢迎的要求,我们即将解决它.我们预计此问题将在2018年9月之前解决,写入API/命令要比读取API/命令晚几周.

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.

这篇关于在Microsoft Graph中查询团队时访问被拒绝的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆