无法访问Microsoft Teams API

时间:2018-02-17 06:28:20

标签: azure-active-directory microsoft-graph microsoft-teams

我正在处理POC,我想访问Microsoft Teams API.i.e. https://graph.microsoft.com/beta/me/joinedTeams

但要低于错误细节。错误详情如下。

{
    "error": {
        "code": "",
        "message": "Authorization has been denied for this request.",
        "innerError": {
            "request-id": "ac2efa19-dc29-4573-9ece-ba98b564818e",
            "date": "2018-02-16T12:55:15"
        }
    }
}

我已经从我的注册申请中获得了microsoft azure的以下权限。

  

Bookings.Manage.All Bookings.Read.All Bookings.ReadWrite.All   BookingsAppointment.ReadWrite.All Calendars.Read Calendars.Read.Shared   Calendars.ReadWrite Calendars.ReadWrite.Shared Contacts.Read   Contacts.Read.Shared Contacts.ReadWrite Contacts.ReadWrite.Shared   Device.Command Device.Read EAS.AccessAsUser.All email Files.Read   Files.Read.All Files.Read.Selected Files.ReadWrite Files.ReadWrite.All   Files.ReadWrite.AppFolder Files.ReadWrite.Selected   Financials.ReadWrite.All Mail.Read Mail.Read.Shared Mail.ReadWrite   Mail.ReadWrite.Shared Mail.Send Mail.Send.Shared MailboxSettings.Read   MailboxSettings.ReadWrite Notes.Create Notes.Read Notes.Read.All   Notes.ReadWrite Notes.ReadWrite.All Notes.ReadWrite.CreatedByApp   offline_access openid People.Read个人资料Sites.Manage.All   Sites.Read.All Sites.ReadWrite.All Tasks.Read Tasks.Read.Shared   Tasks.ReadWrite Tasks.ReadWrite.Shared User.Read User.ReadBasic.All   User.ReadWrite UserTimelineActivity.Write.CreatedByApp

以上权限我可以在解密访问令牌时看到。

我已经查看了Microsoft Teams (beta) API: Looks like you may not have the permissions for this call. Please modify your permissions帖子,并已根据上述帖子给出了许可,但仍然存在同样的错误。

这是屏幕截图 enter image description here

由于

1 个答案:

答案 0 :(得分:2)

获取加入团队所需的权限是User.Read.All,User.ReadWrite.All。有关已加入的团队图表api调用的更多信息,请浏览link