How to check Microsoft Azure AD tenant GUID

CLOUD ON-PREMISES

This article describes how to check the Azure AD tenant GUID.

  • The tenant GUID is an identifier that is used by Azure AD.

  • It is used in Gizmo WebUI SSO to ‘lock’ a WebUI to a Microsoft tenant.

  • The main (and unique) domain name associated to a tenant is based on .onmicrosoft.com domain (e.g. gsxclients.onmicrosoft.com).

  • Alternate domains can also be registered to your tenant (e.g gsxclients.com).

Instructions

Through the Azure AD portal

Login with Azure AD administrator rights to https://aad.portal.azure.com/#blade/Microsoft_AAD_IAM/ActiveDirectoryMenuBlade/Overview

And under “Tenant information” this can be read and copied:

Using PowerShell

  • Run the following PowerShell command to get your tenant GUID.

  • Replace YOUROFFICE365DOMAIN with your domain.

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