question

HajeeknHajeekn-0388 avatar image
0 Votes"
HajeeknHajeekn-0388 asked DianaWanjuhi-1579 commented

Every time I try to get refresh_token through API, it always prompts the administrator or member that it is prohibited to send interactive authorization for this user and resource.

Every time I try to get refresh_token through API, it always prompts the administrator or member that it is prohibited to send interactive authorization for this user and resource.
Request method: POST
Request software: Postman
Request parameters: client_id client_secret redirect_uri grant_type code scope
Request type: x-www-form-urlencoded
Prompt after request:
{
"error": "invalid_grant",
"error_description": "AADSTS65001: The user or administrator has not consented to use the application with ID '1818754a-aa06-4e40-a45a-c77b5529c214' named'yidalipoa'. Send an interactive authorization request for this user and resource.\r\ nTrace ID: 77cb15eb-83ab-4bd5-a3db-f72b512bf601\r\nCorrelation ID: 9079ed73-ea65-4e49-8eab-22b58f478a5b\r\nTimestamp: 2021-05-02 03:29:55Z",
"error_codes": [
65001
],
"timestamp": "2021-05-02 03:29:55Z",
"trace_id": "77cb15eb-83ab-4bd5-a3db-f72b512bf601",
"correlation_id": "9079ed73-ea65-4e49-8eab-22b58f478a5b",
"suberror": "consent_required"
}
93040-image.png


microsoft-graph-sdk
image.png (194.6 KiB)
· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hello @HajeeknHajeekn-0388 would you check with your admin whether your application has been granted the right permissions on AzureAD? Does this happen when you try and fetch the access_token as well?

0 Votes 0 ·

0 Answers