Microsoft Tenant ID Finder
Look up the Microsoft 365 / Azure AD / Entra tenant GUID (a.k.a. Directory ID) for any domain. Same answer the Azure portal gives you — without the login. Also available as a one-line curl: <code>curl https://ogma.in/get-tenant-id/<your-domain></code>
5 ways to find your Microsoft 365 / Entra tenant ID
The fastest is the lookup tool above — just enter your domain. But you can also pull the same GUID from the Entra admin centre, the Azure portal, the Microsoft 365 admin centre, or by calling Microsoft's public OpenID Connect discovery endpoint directly from PowerShell, Bash, or any HTTP client. All five return the same value; pick whichever fits your workflow.
Use the form above (no login)
Type your primary domain (or any verified domain on the tenant — .onmicrosoft.com works as a fallback) into the input above. The 36-character tenant GUID returns in under a second. No Microsoft login required because Microsoft publishes the metadata publicly via OpenID Connect discovery — same data path your auth libraries already use.
Microsoft Entra admin centre
Sign in at entra.microsoft.com → Identity → Overview. The Tenant ID is shown at the top of the page next to your organisation name. This is the modern Microsoft-recommended location since the Azure AD → Entra rename in 2023.
Azure portal
Sign in at portal.azure.com → search for and open Microsoft Entra ID (formerly Azure Active Directory) → Overview. The Tenant ID lives on the Basic Information card. Sometimes also labelled "Directory ID" in older screens — same GUID, just legacy terminology.
Microsoft 365 admin centre
Sign in at admin.microsoft.com → Settings → Org settings → Organization profile. Less prominent than the Entra-side views but useful if you only have the Microsoft 365 admin role and not Entra access.
PowerShell / curl / Bash (no login)
Same approach this tool uses internally — call Microsoft's public OpenID Connect discovery endpoint directly:
# curl + jq curl -s "https://login.microsoftonline.com/your-domain.com/.well-known/openid-configuration" | jq -r .issuer # PowerShell (Invoke-RestMethod "https://login.microsoftonline.com/your-domain.com/.well-known/openid-configuration").issuer # Or just use ours (returns plain text, no jq needed) curl https://ogma.in/get-tenant-id/your-domain.com
The 36-character GUID embedded in the issuer URL is your tenant ID. This works against any tenant whose domain is registered with Microsoft — you don't need to be a member or admin.
Tenant ID vs Object ID vs Application ID — what's what?
All four GUIDs you'll see in Microsoft auth contexts look identical (36-character lowercase hex with dashes), but they identify different things. Mixing them up produces confusing AADSTS500011 / invalid_client errors during sign-in. Quick reference:
- Tenant ID — identifies the whole tenant (the directory itself). What this tool returns. Sometimes shown as Directory ID.
- Object ID — identifies a specific user, group, service principal, or application object inside that tenant. Different per object.
- Application (client) ID — identifies a specific app registration. Used as
client_idin OAuth flows. - Subscription ID — identifies an Azure billing/resource scope. Different from tenant ID; one tenant can have many subscriptions.
When you'll need your tenant ID
- Configuring SSO / SAML / OIDC for a third-party SaaS app that asks for "your Microsoft tenant".
- Setting up an Azure App Registration / API permissions when the docs ask for the tenant in the authority URL.
- Calling Microsoft Graph with the
/v1.0/tenants/{tenant-id}path or in thetidclaim verification. - Filing a support case with Microsoft, Fortinet, CrowdStrike, or any SOC vendor that needs to identify your tenant.
- Wiring up Conditional Access policies in scripts that target a specific tenant by GUID rather than domain.
- Connecting Microsoft Sentinel, Defender XDR, or Purview integrations from external tools.
Looking to actually deploy or migrate to Microsoft 365? Ogma is an authorised Microsoft Solutions Partner — see our Microsoft 365 India, M365 pricing, Purview deployment, and Microsoft security stack services. CSP licensing in INR with GST invoicing.
Frequently Asked Questions
Common questions about the Microsoft Tenant ID Finder tool.