Get Office 365 Tenant ID

It’s pretty easy now to get your Office 365 tenant ID. Here, I will demonstrate three ways, by which you can retrieve your tenant ID :-

  • Azure portal (new and old)
  • PowerShell
  • SharePoint Online

Azure Portal


This, by far is the best and the easiest way to retrieve the tenant ID. In here,

  • Login to Azure portal as administrator.
  • Select Azure Active Directory.
  • Select the directory that you’re using with your Office 365 tenant.
  • Under Proprties, you can find the Directory ID. This is your tenant ID.

    Azure Portal


This option isn’t bad either. However, you won’t get a proper interface like the new Azure portal. In here,


If you have, SharePoint Online Management Shell installed on your computer then, you can get the same by running this PowerShell command

#login with your Office 365 admin id

You will be prompted for userID/password.
Azure user ID prompt

Once authenticated, your tenant ID will be displayed in the console.

PowerShell Tenant ID

SharePoint Online

This is good if, you’re inside your SharePoint Online environment. Instead of going to Azure or PowerShell, you can directly extract the tenant ID from here as well.

Go to Site Settings -> Site App Permissions.

There, you’ll find, App Identifier for each installed app. In this identifier, for any of the installed app, the part after the symbol, ‘@‘ is your tenant ID.

SharePoint Online App Registration

You can directly reach this page by hitting the following URL. Again, it’s just a direct shortcut of the navigation provided above,

One thought on “Get Office 365 Tenant ID

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

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