Getting "AADSTS90002: Tenant '<redacted>' not found." with Resource Owner Password Credentials OAuth2 grant
David Johnson
0
Reputation points
I setup an app registration in my account and enabled the Resource Owner Password Credentials grant. I'm trying to make an OAuth2 ROPC grant request using postman, but get back:
"error": "invalid_request",
"error_description": "AADSTS90002: Tenant '<redacted>.com' not found. Check to make sure you have the correct tenant ID and are signing into the correct cloud. Check with your subscription administrator, this may happen if there are no active subscriptions for the tenant. Trace ID: 7f30dc83-d586-4162-b3e9-7b7967d55600 Correlation ID: a90ae07e-d71e-42ee-96d5-06c71335ea9c Timestamp: 2024-01-02 23:46:09Z",
"error_codes": [
90002
],
The request I'm making is a POST to https://login.microsoftonline.com/{tenantID}/oauth2/v2.0/token. The tenant ID in the URL is the one shown in the app registration. The fact that it was able to translate the tenantID UUID in my request into the correct domain name in the error response tells me it was able to look up the tenant correctly. So why is it failing?
Sign in to answer