Friday, 4 June 2021

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

 

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

I was getting below exception when I was trying to connect to D365 Web API from console.

AAD_Access_2

Reason:

  • Issue was the Application registered on ‘Azure Active Directory’ was not granted the Permission

Fix:

  • Connect to the Azure Active Directory admin center,  using O365 credentials.
  • Select the ‘Application’ from the ‘Azure Active Directory -> App registrations’
  • Click on ‘Settings’ -> Required Permissions -> Click on ‘Grant permissions‘ button

AAD_Access_1

Refer my previous article on how to register application and connect to D365 Web API

No comments:

Post a Comment

Updating Records Without Triggering Plugins – Bypassing Plugin Execution in Dynamics 365 / Dataverse using C#

  Recently, we had to write a small utility—a console application—that would go and update a bunch of existing records in our Dynamics 365 e...