AADSTS65001: The user or administrator has not consented to use the application

Anonymous
2023-06-28T08:32:43.69+00:00

Hi all,

I've been working with MSAL for almost three years, now I am facing a problem I am not able to fix, even if I've read a lot of posts:

"AADSTS65001: The user or administrator has not consented to use the application with ID 'c09036af-fd62-4db6-b27a-xxxxxxxxxxxx' named 'mySite.com'. Send an interactive authorization request for this user and resource. Trace ID: 126a546f-a8b3-4176-8c74-e6a4c4851300 Correlation ID: 6cc0a067-ec3b-4b25-9caa-215620991f24 Timestamp: 2023-06-28 08:14:16Z"

Under Configured permissions there are no pending consents to grant. My application is a single application with no API application. It might be a scope issue, up today I always used the clientId as scope, in this case it does not work.

Microsoft Security | Microsoft Entra | Microsoft Entra ID
{count} votes

1 answer

Sort by: Most helpful
  1. James Hamil 27,221 Reputation points Microsoft Employee Moderator
    2023-06-28T20:18:21.2366667+00:00

    Hi @Anonymous , please follow the steps to grant admin consent. If your app needs user consent, you can construct a consent URL:

    https://login.microsoftonline.com/{tenant-id}/adminconsent?client_id={client-id}
    

    Taken from this thread that has other solutions that might help you as well.

    Please let me know if you have any questions and I can help you further.

    If this answer helps you please mark "Accept Answer" so other users can reference it.

    Thank you,

    James


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.