Skip to main content

Notifications

Announcements

No record found.

Finance | Project Operations, Human Resources, ...
Answered

How to find tenant for Dev enviroment

(1) ShareShare
ReportReport
Posted on by 76

Hi,

I'd like to call my web service on my dev enviroment. I did add in Azure Active Directory my app but I can't get the token since I don't know where to find the tenant of my env.

If im correct it shoud look like this.

login.microsoftonline.com/{tenantid}/oauth2/token

  • ergun sahin Profile Picture
    ergun sahin 8,812 Super User 2024 Season 1 on at
    RE: How to find tenant for Dev enviroment

    Here some possible senario for your case;

    When registering "app" at some step its asking for url. Maybe it was given as UAT url

    When Tennant go to changes; like moving environments between data centers or getting new tennant licence, its possible that old api can't access new envorionment

  • AnithaEswaran Profile Picture
    AnithaEswaran 2,032 on at
    RE: How to find tenant for Dev enviroment

    There might be number of reasons where the earlier app was not giving you results : its secret value would have been expired or the app might not have the permission to allow the tenants outside the organization.  

  • RadekM Profile Picture
    RadekM 76 on at
    RE: How to find tenant for Dev enviroment

    At least it started to work but only with a new registered app.

    No idea why I can't use the app that we are using on our sandbox, yet the goal is archieved. I'm able to get the token on my dev machine.

  • Verified answer
    AnithaEswaran Profile Picture
    AnithaEswaran 2,032 on at
    RE: How to find tenant for Dev enviroment

    you can test this via postman.

    Do a simple test using the auth token and trigger a read on customer groups.

    I`ve given the steps in my blogs. please refer and let me know if you have any doubts

    anithasantosh.wordpress.com/.../

    anithasantosh.wordpress.com/.../

  • RadekM Profile Picture
    RadekM 76 on at
    RE: How to find tenant for Dev enviroment

    So I have no more ideas. We have the same app configured on our sandbox and I can connect there I use the same parameters on my dev env and I can't connect as the error shows in my previous post. It's sad I can't test my webservices before push on our sandbox...

  • AnithaEswaran Profile Picture
    AnithaEswaran 2,032 on at
    RE: How to find tenant for Dev enviroment

    Even if you have read only permission, that would help you to find these parameters. Secret value will not be visible as it is available only while creation.  In the below screenshot of yours, it looks good. I use the same when I configure in postman

  • RadekM Profile Picture
    RadekM 76 on at
    RE: How to find tenant for Dev enviroment

    Are these parameters good to connect with my dev machine?

    pastedimage1667569983111v1.png

  • RadekM Profile Picture
    RadekM 76 on at
    RE: How to find tenant for Dev enviroment

    I have access to azure portal yet, I have there only read privileges.

  • AnithaEswaran Profile Picture
    AnithaEswaran 2,032 on at
    RE: How to find tenant for Dev enviroment

    Hi,

    As you are saying it is your dev environment, can you check if you have access to azure portal  -> Azure app registration?

  • RadekM Profile Picture
    RadekM 76 on at
    RE: How to find tenant for Dev enviroment

    Yes, I added it. THe same client_id and user as on our sandbox yet the problem exist.

    Application with identifier '' was not found in the directory ''. This can happen if the application has not been installed by the administrator of the tenant or consented to by any user in the tenant. You may have sent your authentication request to the wrong tenant.\r\nTrace

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 Verified Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,445 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans