Look up the Microsoft Entra (Azure AD) tenant ID for any domain, email address, or URL — right from Raycast. Resolve one domain or a whole list at once, see the organization name and sign-in type, and copy the result in whatever format you need. You can also go the other way — paste a tenant ID to reveal the organization behind it.
A tenant ID is a small thing you end up needing surprisingly often:
az login --tenant, Connect-AzAccount -TenantId, Connect-MgGraph -TenantId, or an app's authority URL.AADSTS error, a JWT, or an audit log back into a recognizable organization name.Every Microsoft Entra tenant exposes a public OpenID Connect discovery document at:
https://login.microsoftonline.com/<domain>/v2.0/.well-known/openid-configuration
The tenant ID (a GUID) is embedded in the issuer URL of that document. This extension reads that endpoint for whatever you type and pulls out the tenant ID, then enriches it with the organization name and authentication type from the public getuserrealm.srf endpoint. No authentication and no API key required — it only uses public metadata.
Search-as-you-type lookup with a rich detail view.
contoso.com), an email address (alice@contoso.com), or a URL (https://www.contoso.com/team) — the input is normalized automatically.A no-view command: reads the domain from your current selection (or the clipboard as a fallback), resolves it, copies the tenant ID, and shows the result in a HUD. Paste a list and it copies every tenant ID as CSV.
The forward commands need no sign-in. Reverse lookup is a little different. Well-known personal-account tenant IDs — the shared consumer tenants behind outlook.com, hotmail.com, live.com, and Microsoft accounts on other domains — are recognized instantly, with no sign-in. For an organization tenant ID, going from ID → organization name + domain is only possible through Microsoft Graph's findTenantInformationByTenantId, which requires an authenticated call — so the first time you resolve an org tenant, the command asks you to sign in with a work or school Microsoft account.
Paste a tenant GUID and it returns the tenant's organization display name and default domain (*.onmicrosoft.com). Great for turning a tenant ID from a token, log, or sign-in error into a recognizable organization.
Sign-in uses a public client + PKCE flow with no client secret, and a multitenant app registration is built in — there's nothing to configure. You're only prompted the first time you resolve an organization tenant ID; personal-account tenant IDs need no sign-in. Each user signs into their own tenant and consents to a single low-privilege scope,
CrossTenantInformation.ReadBasic.All. Tokens are stored locally in your Raycast; nothing is hosted or shared. Reverse lookup covers the commercial cloud.
Nothing to set up. Personal-account tenant IDs resolve instantly with no sign-in. The first time you resolve an organization tenant ID, Raycast opens a Microsoft sign-in in your browser — approve the one-time consent and you're done. You can Sign out anytime from the command's actions.
Sign-in requires a work or school account. Personal Microsoft accounts can't be used to sign in — Microsoft Graph's reverse-lookup API doesn't support them as the caller. So if you only have a personal account, you can still use every no-sign-in feature (the forward lookups and personal-account tenant IDs), but resolving an arbitrary organization tenant ID needs a work or school account. Don't have one? You can create a free Microsoft Entra directory and sign in with an account from it.
The default Application (client) ID points at a multitenant public-client Entra app registration owned by the extension author (Rediwed). It is not a secret (PKCE public client, no client secret). The author keeps that registration registered for as long as this extension is published in the Raycast Store. If you prefer not to use it — or your organization requires its own app — set Application (Client) ID in the extension preferences to a registration you control (enable public client flows, redirect URI https://raycast.com/redirect?packageName=Extension, delegated permission CrossTenantInformation.ReadBasic.All).
From any result you can copy the tenant ID, or via Copy as…:
https://login.microsoftonline.com/<tenant-id>)az login --tenant <id>Connect-AzAccount -TenantId <id>Connect-MgGraph -TenantId <id>For bulk results, Copy All as CSV and Copy All Tenant IDs are available too.
Domains are checked in parallel against the commercial, US Gov (GCC High / DoD), and China (21Vianet) clouds. The result shows which cloud a tenant lives in, and the Open actions point at the matching portals.