SOLVED

How do you find the tenant ID?

Steel Contributor

Looking for my tenant ID. It is an illusive ID. All the info have found seem to reference the prior version of the Azure portal.

20 Replies
best response confirmed by Eric Adler (Steel Contributor)
Solution

Hi Eric,

 

actually it is pretty easy to find if you know what to look for.

Go to Portal.azure.com > Azure Active Directory > Properties. The directory ID it shows there is your tennant ID.

 

https://portal.azure.com/#blade/Microsoft_AAD_IAM/ActiveDirectoryMenuBlade/Properties

 

You can find your tenant ID using Azure AD Portal or Powershell command. Here's the link for the steps.

+ 1 for PowerShell approach

I was able to find the Tenant but what would happen if I edit it?  We are a non-profit and I was instructed the our Agency name needs to match our Sales Tax information. 

Hi Christopher,

 

I cannot edit it, is a read only data with the identity of your Tenant.

 

What do you need to do ?

There are a lot of ways to do that but none of them are really simple...

Our team got tired of looking everywhere for those tenant Azure & Office 365 IDs so we built an online tool to easily find them by typing in their respective domain.

Hope it might help others too.

https://www.whatismytenantid.com

Hi Sebastien, that little tool is interesting.  What are querying to get that info?  No creds are required so it must be a public source, is there a DNS records containing the TenantID ?

 

Thanks,

 

Hi Curtis, yes we are getting that info from the OpenID Connect configuration endpoint which maps domain names to tenant IDs.

Thanks Sebastien. Interesting. For the benefit of others, OpenID Connect is a simple identity layer that sits on top of OAuth 2.0. For Office 365 there is an OpenID Connect metadata document for each tenant which contains more of the information required for apps to perform sign-in's (including the tenant id).

This is a publically accessible document available for every tenant and is available here: https://login.microsoftonline.com/{tenant domain name}/.well-known/openid-configuration.

That document is returned in JSON and Sebastien's tool makes it easier to read - it extracts just the associated tenant id.

Curtis

But why Microsoft is exposing this? If i give a domain name i am getting the Tenantid, is it not against security? Isnt it should be confidential?

The tool works like a charm.  Like hitting the Big Red Easy button ;)  Thanks Sebastien.

as of 2/2/2019, that web site is having SSL cert problems.

Thanks for letting me know, it has been fixed.

@Eric Adler 

 

az account get-access-token --query tenant --output tsv

@Sebastien Crevier 

 

This embarrassing, but what do we enter in the box, i tried tenantname.sharepoint.com , no luck

 

Untitled.png


@Sebastien Crevier wrote:
There are a lot of ways to do that but none of them are really simple...

Our team got tired of looking everywhere for those tenant Azure & Office 365 IDs so we built an online tool to easily find them by typing in their respective domain.

Hope it might help others too.

https://www.whatismytenantid.com

 

while logged in as a global tenant admin go to https://portal.azure.com in the left navigation you will see Azure AD. Click on that. In the Azure AD menu look for "Properties" there is the Directory (tenant) ID there with a "copy" button.

@Rohit DevmoreI found another location. If you are a global tenant admin. go to the admin center and click on Reports > Usage and in the bottom left corner you will see an "ad" for the Power BI M365 usage app and it has the tenant ID right there for you to use. it is required for the Power BI app to work

@Carsten Stahlberg Not easy to find at all, but thanks for the info. 

Simple way is to type this Azure command from Azure Web explorer.

get-AzSubscription

This will list down all the Subscriptions associated with Tenant and its ID. 

 

Regards,

Girish Prajwal

1 best response

Accepted Solutions
best response confirmed by Eric Adler (Steel Contributor)
Solution

Hi Eric,

 

actually it is pretty easy to find if you know what to look for.

Go to Portal.azure.com > Azure Active Directory > Properties. The directory ID it shows there is your tennant ID.

 

https://portal.azure.com/#blade/Microsoft_AAD_IAM/ActiveDirectoryMenuBlade/Properties

 

View solution in original post