gpt4 book ai didi

microsoft-graph-api - Microsoft Teams (beta) API : Looks like you may not have the permissions for this call. 请修改您的权限

转载 作者:行者123 更新时间:2023-12-04 19:30:05 25 4
gpt4 key购买 nike

我用了 Graph Explorer测试我的 Office 365 配置文件。一切正常接受 Microsoft Teams(测试版)API。如果我使用 GET https://graph.microsoft.com/beta/me/joinedTeams我得到

Status Code 401 - Looks like you may not have the permissions for this call. Please modify your permissions.


{
"error": {
"code": "",
"message": "Authorization has been denied for this request.",
"innerError": {
"request-id": "a1733d8a-5adb-45ad-a0ad-463595d71a89",
"date": "2017-06-09T14:33:11"
}
}
}

似乎没有为 Microsoft Teams 授予权限的选项。有没有人想过这一点?

最佳答案

列出您加入的团队的文档页面位于 https://developer.microsoft.com/en-us/graph/docs/api-reference/beta/api/user_list_joinedteams .看起来这个调用需要 User.Read.AllUser.ReadWrite.All权限。要在图表资源管理器中更改您的权限,您可以单击 Modify Permissions
enter image description here

然后找到并启用任一权限:

enter image description here

但是,这些范围要求租户管理员让 Graph Explorer 仅使用管理员范围。您可以仅以管理员身份登录以使用该帐户进行测试,也可以通过单击 grant access to your entire organization 链接,让组织中的任何用户通过资源管理器访问管理范围。 .

enter image description here

另外,很高兴您找到了 Microsoft Teams 示例。我们上周刚刚添加了这些,很高兴看到开发人员正在尝试它们!感谢您对资源管理器中团队权限流程的反馈,我会将其传递给该项目的所有工程师。

关于microsoft-graph-api - Microsoft Teams (beta) API : Looks like you may not have the permissions for this call. 请修改您的权限,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/44460717/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com