Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
ekimakIA
Frequent Visitor

invalid_grant --> administrator has not consented Error code - 65001 via postman

Hi,

Using a Non Admin account trying to run - https://login.microsoftonline.com/common/oauth2/token in postman with all the valid paramenter.

With admin account I am getting the access token sucessfully but using non admin user the following error is shown.

 

{

    "error": "invalid_grant",

    "error_description": "AADSTS65001: The user or administrator has not consented to use the application with ID '7dffbb6a-0a45-439f-871f-481e84fd27a7' named 'NRGPowerBIForCollibra'. Send an interactive authorization request for this user and resource.\r\nTrace ID: 0a1ba879-fae4-4091-b89f-f1190c8ae301\r\nCorrelation ID: 89839be6-3534-45f8-95db-488b03734ff5\r\nTimestamp: 2021-06-30 20:50:34Z",

    "error_codes": [

        65001

    ],

    "timestamp": "2021-06-30 20:50:34Z",

    "trace_id": "0a1ba879-fae4-4091-b89f-f1190c8ae301",

    "correlation_id": "89839be6-3534-45f8-95db-488b03734ff5",

    "suberror": "consent_required"

}

 

Any help would be appreciated

 

Thank You

1 ACCEPTED SOLUTION
v-shex-msft
Community Support
Community Support

Hi @ekimakIA,

I'd like to suggest you check the user account permission about edit/view correspond contents and confirm if he has enabled the permission of power bi rest API usage.

Register an app to embed Power BI content in a Power BI embedded analytics application - Power BI | ...
Regards,

Xiaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.

View solution in original post

1 REPLY 1
v-shex-msft
Community Support
Community Support

Hi @ekimakIA,

I'd like to suggest you check the user account permission about edit/view correspond contents and confirm if he has enabled the permission of power bi rest API usage.

Register an app to embed Power BI content in a Power BI embedded analytics application - Power BI | ...
Regards,

Xiaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.

Helpful resources

Announcements
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel

Power BI Monthly Update - May 2024

Check out the May 2024 Power BI update to learn about new features.