我尝试使用图形资源管理器创建呼叫,但收到错误代码 401 和一条消息“您似乎没有此呼叫的权限。请修改您的权限。”
我已经通过 Azure 活动目录设置了权限。
Calls.Initiate.All
Calls.InitiateGroupCall.All
Calls.JoinGroupCall.All
Calls.JoinGroupCallAsGuest.All
请求如下:
POST https://graph.microsoft.com/beta/app/calls
Content-Type: application/json
{
"callbackUri": "https://bot.contoso.com/api/calls",
"mediaConfig": {
"@odata.type": "#microsoft.graph.appHostedMediaConfig",
"blob": "<media config blob>"
},
"requestedModalities": [ "audio" ],
"source": {
"identity": {
"application": {
"id": "MyRealApplicationCode",
"tenantId": MyRealTenantId,
"displayName": "IT Bot"
}
},
"languageId": "languageId-value",
"region": "region-value"
},
"subject": "Test Call",
"targets": [
{
"identity": {
"user": {
"id": "MyRealUserId",
"tenantId": MyRealTenantId,
"displayName": "Heidi Steen"
}
}
}
],
"tenantId": "tenantId-value"
}
回应如下:
{
"error": {
"code": "UnknownError",
"message": "{\"errorCode\":\"9000\",\"message\":\"Unsupported AAD Identity.\",\"instanceAnnotations\":[]}",
"innerError": {
"request-id": "b0232477-048b-486b-9d43-77aacfb3fa2f",
"date": "2019-07-16T06:44:00"
}
}
}
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句