Microsoft Teams(测试版)API:看起来您可能没有此调用的权限.请修改您的权限 [英] Microsoft Teams (beta) API: Looks like you may not have the permissions for this call. Please modify your permissions

查看:15
本文介绍了Microsoft Teams(测试版)API:看起来您可能没有此调用的权限.请修改您的权限的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用

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

但是,这些范围要求租户管理员让 Graph Explorer 使用仅限管理员的范围.您可以仅以管理员身份登录以使用该帐户进行测试,也可以让组织中的任何用户通过资源管理器访问管理范围,方法是单击显示授予对整个组织的访问权限的链接.

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

I used the Graph Explorer to test against my Office 365 profile. Everything works fine accept the Microsoft Teams (beta) API. If I use GET https://graph.microsoft.com/beta/me/joinedTeams I get

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"
        }
    }
}

There seems no option for give permission for Microsoft Teams. Has anyone figured that out, yet?

解决方案

The documentation page for listing your joined teams is at https://developer.microsoft.com/en-us/graph/docs/api-reference/beta/api/user_list_joinedteams. It looks like this call requires the User.Read.All or User.ReadWrite.All permissions. To change your permissions in the Graph explorer, you can click Modify Permissions

Then find and enable either permission:

However, these scopes require tenant administrators to let the Graph Explorer use admin only scopes. You can either just login as an administrator to just test with that account, or you can let any user in your organization access admin scopes through the explorer by clicking the link that says grant access to your entire organization.

Also, I'm glad you found the Microsoft Teams samples. We just added these last week and it's great to see developers are trying them out! Thanks for your feedback on the permissions process for the Teams in explorer, I'll pass that along to all the engineers on the project.

这篇关于Microsoft Teams(测试版)API:看起来您可能没有此调用的权限.请修改您的权限的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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