
Announcements
Scenario: I have a scenario where in I need to get all the solutions in an environment using Power Automate. For this we are using the API "https://login.microsoftonline.com/<Environment ID>/oauth2/token" using the app registration client ID and client Secret. I have also given this app user access in the same environment with role of "System Customizer".
Issue: I am getting the error with error code 90002. Where if I hit the same API with the default environment ID, I am able to get the access token.
Can anyone suggest what I am doing wrong here ?
URI should be TenantID not the environmentID
https://login.microsoftonline.com/yourtenantid/oauth2/token
Check the blog post here
Getting a Bearer Token in Power Automate Flow from Azure App Registration | Medium
====================================================
If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.
https://www.linkedin.com/in/devendravelegandla/