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 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, 2018
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
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