Microsoft Graph API Beta-获取聊天返回401未经授权

问题描述 投票:0回答:1

我正在测试Get Chat Microsoft Graph API(仍处于Beta版),当它从Graph Explorer(使用用户令牌)调用时似乎可以成功运行,而不是当我从Postman调用带有应用程序令牌的API时,我得到401 Unauthorized并以Unknown Error作为响应。

https://graph.microsoft.com/beta/users/<user-id>/chats/<conversation-id>

我在Azure上的我的应用程序注册具有以下权限:enter image description here解码后的应用程序令牌包含:

与用于Get User API的相同令牌

https://graph.microsoft.com/beta/users/<user-id>

[基本上,尽管使用文档说明它受支持,但使用应用程序令牌调用时,似乎只有GET Chat API有问题。我在“应用程序注册”配置中缺少什么吗?

编辑

正如我已经在评论中解释的那样,此question对我没有帮助,因为:

  • 审核是正确的
  • 权限存在于令牌中,并由管理员在App注册中授予
  • 范围是正确的enter image description here

我还要检查其他内容吗?

microsoft-graph http-status-code-401 unauthorized microsoft-graph-teams
1个回答
0
投票

您在documentation page(英语)上看到此消息了吗?>>

在使用应用程序权限

© www.soinside.com 2019 - 2024. All rights reserved.