Knowledge Base

How to check your tenant ID

Problem:

You want to check your Microsoft 365 organization ID (Office 365 tenant ID), for example because you need to provide it to CodeTwo Customer Service.

Solution:

You can check your tenant ID in Azure Active Directory admin center or by using PowerShell.

Check tenant ID in Azure Active Directory admin center

To get the tenant ID, follow the steps below:

  1. Log in to portal.azure.com as a global admin.
  2. Then, go to Azure Active Directory > Properties.
  3. In the Directory ID section, you will find your tenant ID (see Fig. 1.). 

Azure AD properties
Fig. 1. TenantID in the Azure Active Directory properties.

Note: You should also see the tenant ID under Azure Active Directory > Overview (Fig. 2.)

Azure AD Overview
Fig. 2. Tenant ID in the Azure Active Directory overview.

Check tenant ID with PowerShell

To get the tenant ID via PowerShell, you need to:

Important

For this method to work, you need to have Microsoft Azure PowerShell module installed.

  1. Run Windows PowerShell.
  2. Connect to Azure Active Directory by running the following cmdlet:
Connect-AzureAD
  1. You will be prompted for credentials to connect to the tenant you want to check the ID for.
  2. Once the session is connected, your tenant ID should be visible instantly (Fig. 3.).

Connect-AzureAD cmdlet
Fig. 3. Tenant ID visible after connecting to Azure AD via PowerShell.

  1. If not, run the below cmdlet to get details of your tenant in Azure AD. The tenant ID is displayed under ObjectId (Fig. 4.).
Get-AzureADTenantDetail

Get-AzureADTenantDetail cmdlet
Fig. 4. Tenant ID seen as a result of Get-AzureADTenantDetal cmdlet.

  1. Once you get your tenant ID, disconnect the session by running:
Disconnect-AzureAD