Microsoft Graph API beta OnlineMeetings 错误 - 服务器错误:在 AAD 中按用户 ID 查找用户失败 [英] Microsoft Graph API beta OnlineMeetings Error - Server error: User lookup by user id failed in AAD
问题描述
我正在开发一个调用 Microsoft Graph API 以生成 Microsoft Teams 会议链接的 Slack 应用.
我能够生成访问令牌,但出现错误:
<代码>{错误":{代码":内部服务器错误",消息":状态:未找到(404)\r\nOperationId:53deefa0-754d-451d-8d0b-34c94ecf1c8e\r\nClientCorrelationId:4794ce56-5774-40c5-a24bc5-a24bc5-a24b-1 由用户查找错误:53deefa0-754d-451d-8d0b-34c94ecf1c8e\r\n用户 ID 在 AAD 中失败.\r\n客户端异常: HTTP 请求的处理导致异常.有关详细信息,请参阅此异常的 'Response' 属性返回的 HTTP 响应.\r\n",}}
因为我使用的是应用程序令牌,所以我使用的是微软图形 API 的测试版
这是我的帖子请求:
POST https://graph.microsoft.com/beta/users/{Application Object ID}/onlineMeetings{开始日期时间":2020-12-28T14:30:34.2444915-07:00",结束日期时间":2020-12-29T15:00:34.2464912-07:00",主题":用户令牌会议",参与者":{组织者":{身份":{用户":{id":应用程序客户端 ID"}}}}}
遗憾的是,Microsoft 文档没有显示我的用例示例,因此如果有人能帮助我,我将不胜感激.
文档:
I am working on a slack app that calls Microsoft Graph API in order to generate a Microsoft Teams meeting link.
I am able to generate an access token, however I am getting the error:
{
"error": {
"code": "InternalServerError",
"message": "Status: NotFound (404)\r\nOperationId: 53deefa0-754d-451d-8d0b-34c94ecf1c8e\r\nClientCorrelationId: 4794ce56-5774-40c5-a272-b6e4cb1242ab\r\nServer error: User lookup by user id failed in AAD.\r\nClient exception: Processing of the HTTP request resulted in an exception. Please see the HTTP response returned by the 'Response' property of this exception for details.\r\n",
}
}
Because I use an application token, I am using the beta version of microsoft graph API
Here is my post request:
POST https://graph.microsoft.com/beta/users/{Application Object ID}/onlineMeetings
{
"startDateTime": "2020-12-28T14:30:34.2444915-07:00",
"endDateTime" : "2020-12-29T15:00:34.2464912-07:00",
"subject" : "User Token Meeting",
"participants": {
"organizer": {
"identity": {
"user": {
"id": "Application client ID"
}
}
}
}
}
The Microsoft docs unfortunately don't show an example for my use case, so I would really appreciate if someone could help me out.
What @allen said is right, you should not put the Application Object ID
in the request url, you need to put the user id
.
You can also view the document:
这篇关于Microsoft Graph API beta OnlineMeetings 错误 - 服务器错误:在 AAD 中按用户 ID 查找用户失败的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!