How to get TenantId using MS Graph API

Manoj Pant 135 Reputation points
2023-05-09T03:44:44.3+00:00

Hello All,

I need to collect the Tanent Id by using MS Graph API.

I have the information of the User and Azure AD application and Need to get Tanent Id.

Microsoft Teams Development
Microsoft Security Microsoft Graph
{count} votes

Accepted answer
  1. CarlZhao-MSFT 46,371 Reputation points
    2023-05-09T05:58:05.5366667+00:00

    Hi @Manoj Pant

    You can log in to Graph Explorer with a user, then call the /organization API endpoint to get the tenant's id:

    User's image

    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.

    2 people found this answer helpful.
    0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.