Query Office 365 Tenant ID


The Office 365 Tenant ID is pretty good hidden. Therefore here are two was finding out what's your Tenant ID ist.

Open PowerShell and login into Office 365

Set-ExecutionPolicy RemoteSigned

$credential = Get-Credential
Connect-MsolService -Credential $credential
$Tenantdomain = 'YourOFFICE365TenantName.onmicrosoft.com'
$TenantID = (Invoke-WebRequest https://login.windows.net/YourOFFICE365TenantName.onmicrosoft.com/.well-known/openid-configuration|ConvertFrom-Json).token_endpoint.Split(‘/’)[3]
$TenantID



Finding the Tenant ID in SharePoint



Author:

Comments

Popular posts from this blog

Cannot join external Lync Meeting: Lync Edge Server Single IP Address (Lync Edge Server Single IP Web Conferenceing Problem)

MFA with Guest Access and different tenants settings

How to hide users from GAL if they are AD Connect synchronized