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
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
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.
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.
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/.../
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...
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
Are these parameters good to connect with my dev machine?
I have access to azure portal yet, I have there only read privileges.
As you are saying it is your dev environment, can you check if you have access to azure portal -> Azure app registration?
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.
As AI tools become more common, we’re introducing a Responsible AI Use…
We are honored to recognize Andrés Arias as our Community Spotlight honoree for…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
Sohaib Cheema 764 User Group Leader
Martin Dráb 619 Most Valuable Professional
André Arnaud de Cal... 603 Super User 2025 Season 2