How to Get the Tenant ID in SharePoint Online?

Requirement: Get Tenant ID from SharePoint Online.

What is my SharePoint Online Tenant ID?

When you subscribe to Office 365, You’ll be assigned a unique identifier as your Tenant ID. This Tenant ID is a GUID that links all services in your Office 365 environment. At times, you may need to know your Tenant ID, E.g., When deploying 3rd party applications, setting up a group policy for OneDrive for Business, PowerBI Adoption Pack, etc. So, How do I retrieve my Tenant ID? In this article, we will discuss several ways to find the Tenant ID in SharePoint Online, including using the SharePoint Online Admin Center, SharePoint Online PowerShell module, and the Microsoft Azure Active Directory PowerShell module.

Here are some ways to find the Tenant ID in Microsoft 365 / SharePoint Online:

Get Tenant ID from SharePoint Online Admin Center:

To get the tenant ID from SharePoint Online, follow these steps:

  1. Login to your SharePoint Admin Center:
  2. From the SharePoint admin center, navigate to the App pages by Clicking on the “More features” link from left navigation >> Click on the “Open” button under “Apps”
  3. From the Apps page, click on the “More Features” >> “App Permissions” link. (URL shortcut:
  4. The App Permissions Page lists all apps, display names, and app identifiers. In the “App Identifier” column, what we get after the @ symbol is our Office 365 Tenant ID. So, here in my case, the Tenant ID is “fa3d1825-7b1c-42c6-bbce-cxah5a6dd192”
    find sharepoint online tenant id

Similarly, you can navigate to any of your Site Collection’s “App Permissions” page ( from site settings to get tenant ID (if there are apps registered, BTW!).

PnP PowerShell to Find Get Tenant ID in SharePoint Online

Here is how to get tenant ID in SharePoint Online with PnP PowerShell:

$TenantSiteURL =  ""

#Connect to the tenant admin
Connect-PnPOnline -Url $TenantSiteURL -Credentials (Get-Credential)

#Get the Tenant ID

You can also get the tenant ID by,

#Set Config Parameter
$SiteURL = ""

#Connect to PnP Online
Connect-PnPOnline -Url $SiteURL -Credentials (Get-Credential)

#Get Tenant ID

Get Tenant ID from Azure AD

We can retrieve the Tenant ID from the Azure AD with PowerShell, as:

#Get credentials
$Cred = Get-Credential

#Connect to Azure AD
Connect-AzureAD -Credential $Cred | Select TenantDomain, TenantId

You can also get the tenant ID from the Azure portal as well. Just log in to the Azure portal at and open the Azure Active Directory module properties. You’ll find the Tenant ID in the below screenshot:

get tenant id in office 365

Find the Tenant ID of any Microsoft 365 Domain

You can also find the tenant ID of any domain, with the URL<DOMAIN-NAME>/.well-known/openid-configuration. E.g.,, and then get the tenant ID:

get tenant id of microsoft 365 domain

Salaudeen Rajack

Salaudeen Rajack - Information Technology Expert with Two decades of hands-on experience, specializing in SharePoint, PowerShell, Microsoft 365, and related products. Passionate about sharing the deep technical knowledge and experience to help others, through the real-world articles!

Leave a Reply

Your email address will not be published. Required fields are marked *