Code :7505 message : Resquest Authorization Tenant Mismatch?

Sanjeev Gupta 1 Reputation point
2022-04-11T11:53:06.407+00:00

I am trying to make call using Microsoft Geaph API to teams with Azure Bot registration with Teams Channel enabled. When I am trying to call it's saying Request Authorisation tenant mismatch.

I tried support,Stack overflow and this is the last option left as nothing is working for me and MS is not even responding to the issue
Below are the deetails

   call =   
       {  
           "@odata.type": "#microsoft.graph.call",  
           "direction": "outgoing",  
           "subject": "Call for Expert from Helpaas User",  
           callbackUri: 'https://api.helpaas.com/v1/api/users/handleCallCallback',  
           "targets": [  
             {  
               "@odata.type": "#microsoft.graph.invitationParticipantInfo",  
               "identity": {  
                 "@odata.type": "#microsoft.graph.identitySet",  
                 "user": {  
                   "@odata.type": "#microsoft.graph.identity",  
                       id: id.AAD_UserGuid,  
                       displayName : id.DisplayName,  
                       "tenantId": "1b5002d5-a18c-4575-858e-f07acdb7cb58"  
                 }  
               },  
             }  
           ],  
           "requestedModalities": [  
             "audio"  
           ],  
           "mediaConfig": {  
             "@odata.type": "#microsoft.graph.serviceHostedMediaConfig",  
             "removeFromDefaultAudioGroup": false  
           },  
           "tenantId": "1b5002d5-a18c-4575-858e-f07acdb7cb58"  
         }  
         
         const response = client.api(`/communications/calls`)  
         .post(call);  
         response.then(call=>{  
             console.log("Call data--->> CAll ",call)  
             // call.on  
         }).catch(err=>{  
             console.log("Eroor getting call data",err)  
         })  

NOTE : Below are the details along with images

  • Teams calling is enabled and shows status as healthy in the Azure Bot configuration.
  • Cross checked Application token that it is in the same tenant i.e Tenant ID in the application token is same.
  • All the permission that are mentioned have been provided as per call.

191923-bot-confi.png
191886-call-error-message.png
191874-call-header.png
191887-call-payload.png

Microsoft Security | Microsoft Graph
{count} votes

1 answer

Sort by: Most helpful
  1. Peter lu/彼得 盧 0 Reputation points
    2023-08-10T05:04:51.89+00:00

    Any updates here? I'm stuck on the same issue.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.