i'm trying to send a request to a PowerBi API using Postman to do sth but i'm stuck at getting the token for it and got the following error:
then i tried to follow this Question, which suggested Authorization first. The result that i got was an HTML page instead of a Code.
i have already given all the Permissions needed for this, although without Granting the Admin permissions, which to my knowledge is not necessary here.
i also have added postman as Redirect URI.
posting these images because i suspect that something might be wrong here.
I tried in my environment with same credentials got an similar error:
Postman:
"AADSTS65001: The user or administrator has not consented to use the application with ID '' named 'PowerBI'. Send an interactive authorization request
The above error occurs when you do not have permission as Grant admin consent is not done.
Please make sure to grant admin consent to your application API. In your azure portal -> Api permission under manage -> add permission->Grant admin consent
After grant permission to the all API's/permission name I got an successfull token both access and bearer token:
Reference:
How to Call the Power BI REST API from Postman - Carl de Souza