question

DhanashreeMane-9222 avatar image
0 Votes"
DhanashreeMane-9222 asked DhanashreeMane-9222 edited

Unsupported AAD Identity while calling communications create calls api

I have followed the Build Python Django apps with Microsoft Graph link .
https://docs.microsoft.com/en-us/graph/tutorials/python

In oauth_settings.py file I have added the below scope

scopes:
- user.read
- mailboxsettings.read
- calendars.readwrite
- onlinemeetings.readwrite
- user.readwrite.all
-Calls.Initiate.All

Not able to add the Calls.Initiate.All permission in scopes.
error-
The application 'demoapp' asked for scope 'Calls.Initiate.All' "
"that doesn't exist on the resource


I am able to get the access token and then pass the token to below calls api
data = {
"@odata.type": "#microsoft.graph.call",
"callbackUri": "http://localhost:8000/callback",
"targets": [
{
"@odata.type": "#microsoft.graph.invitationParticipantInfo",
"identity": {
"@odata.type": "#microsoft.graph.identitySet",
"user": {
"@odata.type": "#microsoft.graph.identity",
"displayName": name,
"id": id
}
}
}
],
"requestedModalities": [
"audio"
],
"mediaConfig": {
"@odata.type": "#microsoft.graph.serviceHostedMediaConfig"
}
}
requests.post('https://graph.microsoft.com/v1.0/communications/calls',headers=get_header(token),json=data)

Facing below error when Calls.Initiate.All permission is not added in scopes for calls api -
error -
{"error":{"code":"UnknownError","message":"{\"errorCode\":\"7500\",\"message\":\"Unsupported AAD Identity.\",\"instanceAnnotations\":[]}","innerError":{"date":"2021-08-09T12:25:10","request-id":"6de1e640-0fc2-49d7-a52b-5a67efbecd7b","client-request-id":"6de1e640-0fc2-49d7-a52b-5a67efbecd7b"}}}


microsoft-graph-cloud-communications
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

0 Answers