Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Azure AD Tenant Name

I'm an Office 365 user and I'm writing applications that use Azure AD to authenticate against. In all the examples I find, the tenant name they are using is a friendly name like onmicrosoft.com or domain.com. The tenant name I have to work with though is a guid.

Is there any way to change this? Doing things like calling the graph api just doesn't look right: https://graph.windows.net/12345678-aaaa-bbbb-cccc-dddddddddddd/groups?api-version=1.6

like image 364
Joshua Dale Avatar asked Jan 13 '16 23:01

Joshua Dale


People also ask

What is a tenant in Azure AD?

An Azure AD tenant is a reserved Azure AD service instance that an organization receives and owns once it signs up for a Microsoft cloud service such as Azure, Microsoft Intune, or Microsoft 365. Each tenant represents an organization, and is distinct and separate from other Azure AD tenants.

Can you change tenant name in Azure?

Unfortunately, you cannot rename Azure tenant. However, you can create a new tenant with desired name (if the name is available and not already taken by someone else) and then transfer your pay-as-you-go subscription to the new tenant.

Is Azure ID same as tenant ID?

Note: The Tenant ID and Directory ID are the same.

Is Azure directory same as tenant?

A directory is the Azure AD service. Each directory has one or more domains. A directory can have many subscriptions associated with it, but only one tenant. A domain (or accepted domain) is a DNS zone for which a tenant has proven ownership (by creating an arbitrarily named DNS record as requested by Microsoft).


1 Answers

You can qualify endpoint URLs with both a registered domain for the tenant (the default <tenant>.onmicrosoft.com and any other domain you registered under the tenant) and the tenantID, which comes in GUID format. Both approaches will yield the same result, the only difference is that the tenantID is more stable (guaranteed non reassignable).
You just need to find out what is one of the domains associated to your tenant - that should be visible in the UX when you perform an authentication - and instantiate it in the URL in lieu of the tenantID.

like image 92
vibronet Avatar answered Oct 12 '22 15:10

vibronet