Skip to main content

How to Find Your Microsoft Entra Tenant ID

· 4 min read
Jagdish Kumawat
Founder @ Dewiride

Apps, scripts and SDK settings often ask for your tenant ID: the GUID that identifies your organization in Microsoft Entra ID. It's on the first page of the Microsoft Entra admin center, with a copy button next to it.

A tenant is your organization's own instance of Microsoft Entra ID, the identity service behind Microsoft 365 and Azure. Its users, groups and app registrations all live in it. Microsoft describes the tenant ID as a globally unique identifier (GUID) that is different than your organization name or domain, and software uses it to point at your organization: a sign-in address such as https://login.microsoftonline.com/<tenant ID>, or a setting that says which organization an app accepts.

The ID goes by other names too. Microsoft's documentation lists directory ID, Microsoft Entra tenant, Microsoft ID and, in some reports, tenantguid. In an app registration, it's shown as Directory (tenant) ID.

Prerequisites​

  • An account in the tenant. Microsoft's guide signs in to the Microsoft Entra admin center as at least a Global Reader.

Step 1: Open the Overview Page​

Sign in to the Microsoft Entra admin center and go to Entra ID > Overview. If your account belongs to more than one organization, check the organization's name under your account at the top right, and switch with the Settings icon if it's the wrong one.

Step 2: Copy the Tenant ID​

On the Overview tab, Basic information shows the organization's Name, its Tenant ID and its Primary domain. Select the copy icon next to the tenant ID:

The Overview tab of the Microsoft Entra admin center: under Basic information, Name Contoso, Tenant ID 11111111-1111-1111-1111-111111111111 with its copy icon highlighted, and Primary domain example.com

The ID is now on your clipboard, ready to paste into a settings file or a command. Like every GUID, it's five groups of digits and the letters a to f, separated by hyphens, in the pattern 11111111-1111-1111-1111-111111111111.

Common Mistakes​

MistakeWhat happensDo this instead
Copying the Primary domain insteadSettings that expect a GUID failCopy the Tenant ID
Copying an app's Application (client) IDIt identifies the app, not the organizationUse Directory (tenant) ID on the app's page, or the Overview page
Looking in the wrong organizationThe ID belongs to another tenantCheck the organization name at the top right first

Troubleshooting​

SymptomLikely causeFix
You can't open the admin centerYour organization restricts it for non-adminsAsk an admin for the tenant ID
The ID isn't accepted by an appIt's from a different tenant than the app'sCompare it with the app's Directory (tenant) ID

FAQ​

Is the tenant ID the same as my Azure subscription ID?​

No. A subscription is a billing container for Azure resources, and it has its own ID. Microsoft's documentation describes the relationship: Each subscription has a tenant ID associated with it, and one tenant can have many subscriptions.

Can I find it from the command line?​

Yes. Microsoft's guide lists az account tenant list for the Azure CLI and Get-AzTenant for Azure PowerShell, once you're signed in.

Conclusion​

Your tenant ID is on Entra ID > Overview in the Microsoft Entra admin center, under Basic information, with a copy icon next to it. It's the GUID that identifies your organization, so use it wherever a setting asks for the tenant, rather than the organization's name or domain.

Additional Resources​