Hello @Myles Gamez ,
Thank you for reaching out to Microsoft QnA Support. I would like to inform you that the error AADSTS65001: The user or administrator has not consented to use the application
is a common issue in Azure Active Directory (AAD) when an application tries to access resources or APIs but the user or administrator has not given consent.
This error usually occurs when you missed granting admin consent to the added scope while retrieving the access token. Here are some potential solutions:
- You or your administrator may need to grant consent to the application. This can be done in the Azure portal, under the “API permissions” section of the application registration.
- Ensure that the necessary API permissions are added to your application and that admin consent is granted if required.
- Prompt Parameter: If you’re using the prompt=consent parameter in your authorization URL, try removing it.
Remember, changes in the Azure portal can take a few minutes to propagate. If you’ve recently made changes, you might need to wait a bit before testing again.
Document references:
- Grant tenant-wide admin consent to an application: https://learn.microsoft.com/en-us/entra/identity/enterprise-apps/grant-admin-consent?pivots=portal
- Unexpected consent prompt when signing in to an application: https://learn.microsoft.com/en-us/entra/identity/enterprise-apps/application-sign-in-unexpected-user-consent-prompt
Please "Accept the answer" if the information helped you. This will help us and others in the community as well.