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

Notifications

Announcements

No record found.

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 174

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)
  • Verified answer
    Arunraj Rajasekar Profile Picture
    1,743 on at

    Hi RadekM,

    You can find the tenant ID two ways.

    1) Open URL in browser. Click the question mark in the top right corner, and open the About window. Here you can see the tenant id in Serial number field, and tenant name just above it.

    2) Go to Portal.azure.com > Azure Active Directory > Properties. The directory ID it shows there is your tenant ID.

  • RadekM Profile Picture
    174 on at

    Thanks,

    yet I still can't connect so there must be some more configuration into it.

    I'M using the same app credentials as on our sandbox where I can connect without problems, yet on my dev it says that the application id is not found in directory.

  • Arunraj Rajasekar Profile Picture
    1,743 on at

    Did you add application id in Azure Active Directory applications form?

    learn.microsoft.com/.../services-home-page

  • RadekM Profile Picture
    174 on at

    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

  • AnithaEswaran Profile Picture
    2,032 on at

    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
    174 on at

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

  • RadekM Profile Picture
    174 on at

    Are these parameters good to connect with my dev machine?

    pastedimage1667569983111v1.png

  • AnithaEswaran Profile Picture
    2,032 on at

    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
    174 on at

    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...

  • Verified answer
    AnithaEswaran Profile Picture
    2,032 on at

    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/.../

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…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

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

#1
Abhilash Warrier Profile Picture

Abhilash Warrier 677 Super User 2025 Season 2

#2
André Arnaud de Calavon Profile Picture

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

#3
Martin Dráb Profile Picture

Martin Dráb 317 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans