azureblog.co.uk
← cd ~/errors
// entra id sign-in error · consent and permissions

AADSTS9002341

What Microsoft says

V2Error: invalid_grant - The user is required to permit single sign-On (SSO). This error occurs when the user has not granted the necessary permissions for the application to perform SSO. The user should be redirected to the consent screen to grant the necessary permissions. Refer to this announcement for more information."

How to fix it

Microsoft doesn't publish a specific fix for this code beyond the description above. This site groups it under consent and permissions, based on that description, so start with the steps below.

How to investigate

  1. Open the Enterprise App and check Users and groups (assignment) and Permissions (consent).
  2. Check whether user consent is allowed for this kind of permission, or whether an admin needs to grant it.
  3. Look at the app's requested permissions in the sign-in request or app registration.
  4. Search the sign-in logs for the request ID or correlation ID from the troubleshooting details on the error page.

Tools that help

The description is quoted from Microsoft's error code reference. The grouping and investigation steps are this site's guidance.