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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.