How to Find Your Office 365 Tenant Name

How to find your Office 365 tenant name

This article will show you how to find your tenant name using the Office 365 Portal or PowerShell.

Find Your Tenant Name Using the Office 365 Portal

Follow these simple steps to identify your tenant name using the web console:

  1. Open the Office 365 Admin Center, click Setup and select Domain (direct link)
  2. Identify the domain name that has three parts and ends with “onmicrosoft.com”
How to identify your Office 365 tenant name

Find Your Tenant Name Using PowerShell

If you prefer to use the PowerShell console the following commands will get you the Office 365 tenant name:

  1. Connect-MsolService
  2. Get-MsolDomain

The commands require that the MSOnline PowerShell module is installed. For more information on how to connect to Office 365 using PowerShell read this article.

The output will look similar to the following:

Name Status Authentication ---- ------ -------------- skrubbeltrang.mail.onmicrosoft.com Verified Managed skrubbeltrang.onmicrosoft.com Verified Managed

The tenant name is the three part name ending with “onmicrosoft.com”.

To avoid any confusion you can sort the output using the following one-liner:

  1. get-msoldomain | ? {$_.Name.Split('.').Length -eq 3 -and $_.Name -like '*onmicrosoft.com'}

This will give you output similar to the following:

Name Status Authentication ---- ------ -------------- skrubbeltrang.onmicrosoft.com Verified Managed
Did you like this post? Maybe your friends will too!