Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Error 7505 - Request Authorization Tenant Mismatch

I am attempting to create a call using Example 3 from the documentation. I consistently get the same HTTP 403 response.

  • My data is hosted via an Azure Portal Office Developer account.
  • Sending a bearer token obtained through the process described as "Get access without a user."
  • The bot is defined in Azure AD using an Office 365 developer account.
  • The recipients are two of the users from that free AD deployment and the 16-user pack installed for testing.

In the body of the HTTP 403 response, I get:

{
  "error": {
    "code": "7505",
    "message": "Request authorization tenant mismatch.",
    "innerError": {
      "request-id": "foo",
      "date": "2020-02-13T17:30:24"
    }
  }
}
like image 664
MarkSingleWire Avatar asked Apr 11 '26 23:04

MarkSingleWire


1 Answers

The examples in the documentation seem to be missing a required tenantId property. Note that this property is mentioned in the documentation.

The values of authorization token, callback URL, application ID, application name, user ID, user name, and tenant ID must be replaced with actual values to make the example work.

The Example 3 from the Beta documentation, however, does seem to include this property in the request:

{
  "@odata.type": "#microsoft.graph.call",
  "direction": "",
  "subject": "",
  "callbackUri": ",
  "source": {...},
  "targets": [...],
  "requestedModalities": [...],
  "mediaConfig": {...},
  "tenantId": ""
}

Adding that tenantId property seems to eliminate the error.

like image 124
Marc LaFleur Avatar answered Apr 22 '26 05:04

Marc LaFleur



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!