Error Code Portal
MicrosoftMicrosoft Entra IDError code

AADSTS700005

InvalidGrantRedeemAgainstWrongTenant

Alternative forms: 700005

Code AADSTS700005 · An issue reported by Microsoft Entra ID.

InvalidGrantRedeemAgainstWrongTenant - Provided Authorization Code is intended to use against other tenant, thus rejected. OAuth2 Authorization Code must be redeemed against same tenant it was acquired for (/common or /{tenant-ID} as appropriate)

Troubleshooting and diagnostic links

First check that the document's product, version, and environment match your situation.