Forum Discussion

ekimakIA's avatar
ekimakIA
Frequent Visitor
5 years ago
Solved

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