Skip to main content

Lookup external tenant id (notes)


 

Use case


image.png

Graph API


GET https://graph.microsoft.com/beta/tenantRelationships/findTenantInformationByDomainName(domainName='<domain>')

{
    "@odata.context": "https://graph.microsoft.com/beta/$metadata#microsoft.graph.tenantInformation",
    "tenantId": "<tenantid>",
    "federationBrandName": null,
    "displayName": "<tenantdisplayname>",
    "defaultDomainName": "<tenantonmicrosoftdomainname>"
}

 

{"requests":[{"id":"6cc87342-6338-48d6-acd6-fb4bb0f8012c","method":"GET","url":"/tenantRelationships/findTenantInformationByDomainName(domainName='caprezhaaf.onmicrosoft.com')","headers":{"ConsistencyLevel":"eventual","x-ms-command-name":"TenantManagement - GetTenantInfo","x-ms-client-request-id":"e58d3987-2b8f-46dc-82b3-2fac7c99cda3","x-ms-client-session-id":"fd7ff176243042509b113d43aad62062"}}]}

image.png