azureapiazure-active-directorypostmanpowerbi-api

"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 sth 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


Solution

  • 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