Forum Discussion
Eric Adler
Jul 20, 2017Steel Contributor
How do you find the tenant ID?
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.
- Jul 20, 2017
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
Sebastien Crevier
Feb 10, 2018Brass Contributor
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
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
Feb 10, 2018
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,
- Sebastien CrevierFeb 12, 2018Brass Contributor
Hi Curtis, yes we are getting that info from the OpenID Connect configuration endpoint which maps domain names to tenant IDs.
- Feb 12, 2018Thanks 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