← cd ~/errors
// entra id sign-in error · consent and permissions
AADSTS65004
UserDeclinedConsent
What it means
The user declined consent.
How to fix it
Expected if the user chose to. If they need the app, use the admin consent workflow.
How to investigate
- Open the Enterprise App and check Users and groups (assignment) and Permissions (consent).
- Check whether user consent is allowed for this kind of permission, or whether an admin needs to grant it.
- Look at the app's requested permissions in the sign-in request or app registration.
- Search the sign-in logs for the request ID or correlation ID from the troubleshooting details on the error page.
Guides on this site
Tools that help
Error names and meanings follow Microsoft's error code reference. The fixes are this site's guidance.