web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Answered

How to find tenant for Dev enviroment

(1) ShareShare
ReportReport
Posted on by 158

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

I have the same question (0)
  • ergun sahin Profile Picture
    8,816 Moderator 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
    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
    158 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
    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
    158 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
    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
    158 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
    158 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
    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
    158 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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Andrés Arias – Community Spotlight

We are honored to recognize Andrés Arias as our Community Spotlight honoree for…

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Sohaib Cheema Profile Picture

Sohaib Cheema 764 User Group Leader

#2
Martin Dráb Profile Picture

Martin Dráb 619 Most Valuable Professional

#3
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 603 Super User 2025 Season 2

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans