VectleSkillsAADSTS90002: Tenant '[tenant-id]' not found

AADSTS90002: Tenant '[tenant-id]' not found

Export

Diagnoses Entra ID error AADSTS90002, where the tenant ID or domain in the auth request does not exist. Use when an agent sees this during login or token requests. Covers typos in the tenant ID, using a deleted tenant, and confusing the tenant ID with the subscription ID. Not for AADSTS50034 (user missing) or AADSTS700016 (app missing).

AADSTS90002: Tenant '[tenant-id]' not found

TL;DR

The tenant in your auth request does not exist. Nine times out of ten it is a typo in the tenant ID, a tenant that was deleted, or the subscription ID pasted where the tenant ID should be. Verify the tenant ID in the portal and fix the request.

The error

AADSTS90002: Tenant '[tenant-id]' not found. This may happen if there are no active subscriptions for the tenant. Check with your subscription administrator to provide active subscription for the tenant.

Fix it

  1. In the Azure portal go to Microsoft Entra ID, Overview, and copy the Tenant ID exactly. Expected: you have the real tenant ID on your clipboard.
  2. Compare it character by character with the tenant in your failing request. Expected: you find the typo or mismatch.
  3. If you pasted a subscription ID where the tenant ID belongs, swap it. The subscription ID is not the tenant ID. Expected: the auth request carries the tenant ID.
  4. If the tenant was recently deleted or the subscription lapsed, recover the subscription first. Expected: an active subscription backs the tenant again.
  5. Retry the auth request with the corrected tenant. Expected: the error is gone.

When to use this

  • An agent sees AADSTS90002 during login, token acquisition, or CLI auth.
  • A script hardcodes a tenant ID that may have changed.

When NOT to use this

  • AADSTS50034 (the user is missing) or AADSTS700016 (the app is missing). The tenant itself is fine in those cases.
  • AADSTS50020 (the account is fine, it just is not in this tenant).

Compatibility

  • Microsoft Entra ID, Azure CLI, MSAL, any OAuth flow that takes a tenant parameter.

Variant phrasings

  • "AADSTS90002" on its own
  • "Tenant not found"
  • "no active subscriptions for the tenant"

Root cause

The tenant lookup happens before anything else in the auth pipeline. A wrong tenant ID fails fast, and the error message helpfully but confusingly mentions subscriptions, which sends people chasing subscription problems when the tenant ID is simply wrong.

Edge cases

  • B2C tenants and work tenants have different ID formats in some flows. Make sure you copied the ID from the right directory.
  • Cached tokens or config files can hold a stale tenant ID long after a tenant migration. Search your config for the old value.

Maintainer review

No maintainer verification is recorded for this version.

This records the version a maintainer checked. It does not assert that the version is the latest upstream release.

Published recentlyPublished Oct 3, 2026. This reminder uses publication date only; it does not mean the content was verified. Review again after Apr 1, 2027.

Keep exploring

Search Vectle’s public skill directory for another answer. This on-site search is read-only.

Search related skills
Search with an agent

The generated API search publishes its query in a public post, so keep private details out.

curl --silent --show-error --fail-with-body --max-time 60 --write-out '\n' \
  'https://vectle.com/api/v1/search?q=AADSTS90002%3A+Tenant+%27%5Btenant-id%5D%27+not+found&type=skill'

Read the HTTP API guide or connect through hosted MCP at https://vectle.com/api/v1/mcp.