Tom Talks Microsoft Teams and Microsoft 365 Collaboration news and opinions

How to get your Office 365 Tenant Name and Tenant ID

Office 365 tenant have a tenant name and alphanumeric tenant ID, often when people ask for the tenant ID, they may just want the tenant name, but either way, here is how to find both:

Tenant Name

Your tenant name is the name specified when you sign up in the format: company.onmicrosoft.com, you can usually find it in your company profile

SNAGHTML1ec83d9d

 

Or domain Options:

image

 

To find it with PowerShell, first, install the Microsoft Online Services Sign-In Assistant for IT Professionals RTW from the Microsoft Download Center. Then install the Azure Active Directory Module for Windows PowerShell (64-bit version), and click Run to run the installer package.

Run PowerShell as Administrator, and run Connect-MsolService, you will be prompted for your credentials

image

Get-MsoAccountSku, the first element of the AccountSkuID is the tennant ID.

image

Alphanumeric Office 365 Tenant ID

You can find your tenant ID in the Azure AD portal. You’ll need to be an Azure AD administrator.

Find your Office 365 Tenant ID in the Azure AD portal

Under Azure Active Directory / Properties, see Directory ID

Find your Office 365 Tenant ID on the Office 365 Admin Center under the SharePoint Admin Portal

apps / app permissions

It’s the number behind the “@”

 

 

Find your Office 365 Tenant ID via PowerShell

Thanks, Office 365 Tech Expert in comments. See above to get your tenant name

(Invoke-WebRequest https://login.windows.net/YOUROFFICE365DOMAINNAME.onmicrosoft.com/.well-known/openid-configuration|ConvertFrom-Json).token_endpoint.Split(‘/’)[3]

About the author

Tom Arbuthnot

A Microsoft MVP and Microsoft Certified Master, Tom Arbuthnot is Principal Solutions Architect at Microsoft Collaboration specialists Modality Systems.

Tom stays up to date with industry developments and shares news and his opinions on his blog, Microsoft Teams Podcast and email list. He is a regular speaker at events around the world.

16 comments

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Tom Talks Microsoft Teams and Microsoft 365 Collaboration news and opinions