Mostafa Bouzari
Mostafa Bouzari

Reputation: 10240

"AADSTS65001: The user or administrator has not consented to use the application with ID '' named 'PowerBI'. Send an interactive authorization request

I'm trying to send a request to a PowerBi API using Postman to do something but I'm stuck at getting the token for it and got the following error:

enter image description here

Then I tried to follow this Question, which suggested Authorization first. The result that I got was an HTML page instead of a code.

enter image description here

I have already given all the permissions needed for this, although without granting the Admin permissions, which to my knowledge is not necessary here.

enter image description here

I also have added Postman as redirect URI.

enter image description here

Posting these images because I suspect that something might be wrong here:

enter image description here

enter image description here

Upvotes: 0

Views: 1057

Answers (1)

Venkatesan
Venkatesan

Reputation: 10455

I tried in my environment with same credentials got an similar error:

enter image description here

Postman:

enter image description here

"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

enter image description here

After grant permission to the all API's/permission name I got an successfull token both access and bearer token:

enter image description here

enter image description here

Reference:

How to Call the Power BI REST API from Postman - Carl de Souza

Upvotes: 0

Related Questions