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

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

问题描述

我使用了图形浏览器对我的Office 365配置文件进行了测试.一切正常,都可以接受Microsoft Teams(测试版)API.如果我使用GET https://graph.microsoft.com/beta/me/joinedTeams 我得到

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

状态码401-看来您可能没有此权限 称呼.请修改您的权限.

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授予权限的选项.有人知道了吗?

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:

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

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.

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

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天全站免登陆