Microsoft Teams(测试版)API:看起来您可能没有此调用的权限.请修改您的权限您的、权限、测试版、Microsoft

2023-09-08 08:35:36 作者:爱扯淡的苏格拉底

我使用

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

microsoft teams app下载 Microsoft Teams下载 苹果版v2.0.2 PC6苹果网

但是,这些范围要求租户管理员让 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.