Tenant Detailed Information Get Endpoint

Gambhir Kunwar 25 Reputation points Microsoft Employee
2023-05-10T20:06:29.9733333+00:00

Context: Our team is working on provisioning for a product. We need to make Graph calls.

I have a couple of questions to ask:

  1. We need a "region" field from MS Graph for a tenant. https://learn.microsoft.com/en-us/graph/api/managedtenants-tenantdetailedinformation-get?view=graph-rest-beta&tabs=http Is this end point stable to call? I also see "NA" for "region" attribute. We need to identify if our tenant is located in US or EU region.
  2. We also need a list of global admins for a tenant. https://learn.microsoft.com/en-us/graph/api/rbacapplication-list-roleassignments?view=graph-rest-1.0&tabs=http
    In response, there is one object with "mail", but other two objects don't. If "mail" is configured for a user of a tenant in AAD, could we retrieve for each users?
Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
11,445 questions
{count} votes

Accepted answer
  1. Ab-8756 800 Reputation points
    2023-05-12T18:58:32.0366667+00:00

    Hello Gambhir Kunwar,
    Thank you for your post in this Q&A forum.
    For your first question, We need a "region" field from MS Graph for a tenant. https://learn.microsoft.com/en-us/graph/api/managedtenants-tenantdetailedinformation-get?view=graph-rest-beta&tabs=http Is this end point stable to call?
    This API still in beta version, the endpoint may be functional, it is not considered to be stable for production use. Definitely, not recommended to use for production.

    For your second question;- do you want to know if you have multiple Global admin users with with mail object, with the endpoint retrieve all?

    0 comments No comments

1 additional answer

Sort by: Most helpful
  1. CarlZhao-MSFT 40,311 Reputation points
    2023-05-15T09:37:26+00:00

    Hi @Gambhir Kunwar

    1. If you want to use the graph API to get the tenant's country/region field, then you should call the /organization endpoint instead of the /tenantDetailedInformation endpoint, because the /tenantDetailedInformation endpoint is used to get the managed tenant's information.
    2. Yes, if you have set mail property for user then you will be able to retrieve user using that property.

    Hope this helps.

    If the reply is helpful, please click Accept Answer and kindly upvote it. If you have additional questions about this answer, please click Comment.