Skip to main content

Notifications

Announcements

No record found.

Customer experience | Sales, Customer Insights,...
Suggested answer

Getting tenant URL after getting access token for multi tenant application

Posted on by 5

Hello,

Please I am very new to dynamics 365 and I am working on a multi tenant application.
I am trying to make an API call to the authorized user tenant instance but I am unable to get the tenant URL from the access token returned after calling the common token endpoint. 

login.microsoftonline.com/.../token

Is there a suggested way to get the tenant URL?

  • Suggested answer
    eykalman Profile Picture
    eykalman 1,106 Most Valuable Professional on at
    RE: Getting tenant URL after getting access token for multi tenant application

    Hi

    Check out https://docs.microsoft.com/en-us/powerapps/developer/data-platform/webapi/discover-url-organization-web-api, where you'll see how to get the various URL/URI information. It needs to be for the specific environment that you're trying to connect into.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,280 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,214 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans