Forum Discussion
How do you find the tenant ID?
- Jul 21, 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
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
- Rohit404404May 07, 2019Brass Contributor
This embarrassing, but what do we enter in the box, i tried tenantname.sharepoint.com , no luck
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- Eric AdlerMay 07, 2019Iron Contributor
Rohit404404I 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
- Eric AdlerMay 07, 2019Iron Contributorwhile 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.
- rrelyeaFeb 02, 2019Copper Contributor
as of 2/2/2019, that web site is having SSL cert problems.
- Sebastien CrevierFeb 05, 2019Brass Contributor
Thanks for letting me know, it has been fixed.
- edwardsdnaAug 10, 2018MCT
The tool works like a charm. Like hitting the Big Red Easy button ;) Thanks Sebastien.
- SN NAug 01, 2018Copper Contributor
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?
- 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