A cloud-based identity and access management service for securing user authentication and resource access
AADSTS90094 indicates that the application is requesting permissions that only an administrator can grant, or that user consent is blocked or misaligned with the way consent was granted.
From the provided information and the documented behavior, the most relevant points are:
- AADSTS90094 is expected when:
- A non-admin user attempts to use an application that requests permissions that only an administrator can grant.
- User consent is disabled or restricted at the tenant level.
- The app is considered risky and user consent is blocked.
- The app requires assignment and tenant-wide admin consent has not been correctly applied.
- AADSTS90094: “needs permission to access resources in your organization that only an admin can grant”.
- AADSTS90093/90094 are raised when a non-admin user tries to use an app requesting admin-only permissions, or when risky-app policies block user consent.
- Tenant-wide admin consent vs. user consent and assignment:
- Admin consent can be granted tenant-wide (
consentType = AllPrincipals) so that users are not prompted for consent. - However, if user consent is disabled or limited, or if the app is flagged as risky, non-admin users can still be blocked and see AADSTS90094 even when admin consent exists.
- If the app is configured to require assignment, users must be assigned and admin consent must be granted tenant-wide; otherwise, non-admin users will see consent errors.
- The documentation explicitly notes that user consent can be blocked for risky applications and that this can surface as an admin-consent-required error.
- Admin consent can be granted tenant-wide (
- Conditions that must be true for non-admin users to sign in successfully:
Based on the consent and troubleshooting articles, verify all of the following in the tenant and app configuration:
- User consent policy
- In Microsoft Entra admin center, under Enterprise applications → Consent and permissions, check the user consent settings.
- If Do not allow user consent or a restrictive policy is configured, non-admin users cannot grant any consent. In that case, the app must rely solely on admin consent and must not prompt users for consent.
- If the app or its sign-in URL forces
prompt=consentorprompt=admin_consent, non-admin users will be blocked and see AADSTS90094. Ensure the delegated user sign-in flow does not includeprompt=consentorprompt=admin_consentfor non-admins.
- Admin consent scope alignment
- Ensure that the scopes requested in the interactive sign-in request for non-admin users exactly match the scopes that have been granted via admin consent.
- The troubleshooting guide notes that requesting scopes that have not been consented to in a sign-in request will cause consent errors.
- Confirm that the sign-in request for non-admin users is not including any additional scopes beyond:
-
https://outlook.office.com/IMAP.AccessAsUser.All -
https://outlook.office.com/SMTP.Send -
offline_access -
User.Read
-
- Application assignment requirement
- If the application is configured to require assignment, individual user consent is not supported; an admin must grant tenant-wide admin consent and assign users.
- The unexpected-consent-prompt article states that for apps requiring assignment, admin must grant tenant-wide admin consent so that assigned users can sign in.
- Confirm that either:
- Assignment is not required, or
- If assignment is required, the affected users are assigned to the app and tenant-wide admin consent has been granted.
- Risk-based consent blocking
- The consent documentation notes that user consent can be blocked for risky applications. In that case, AADSTS90094 can appear and an audit event is logged with category ApplicationManagement, activity Consent to application, and status reason Risky application detected.
- Check the audit logs in Microsoft Entra ID for such events related to the app. If present, an administrator must explicitly grant access and/or adjust policies that block risky apps.
- Service principal and baseline sign-in permissions
- The consent troubleshooting article recommends ensuring that the app has at least User.Read or OpenId delegated permission configured and consented for user sign-in.
- Confirm that the Graph User.Read permission is present in API permissions and has admin consent, and that the sign-in request includes the appropriate OpenID scopes as required by the platform.
- Engineering-level inspection
- The documentation does not expose any additional “consent cache” or per-user consent state beyond what is visible via Graph (
oauth2PermissionGrants) and the Entra admin center. - For persistent AADSTS90094 where:
- Tenant-wide admin consent is confirmed (
consentType = AllPrincipals), - Scopes requested at sign-in match the granted scopes,
- User consent policies and assignment settings have been validated, and
- No risky-app blocking events explain the behavior,
- Tenant-wide admin consent is confirmed (
- The documentation does not expose any additional “consent cache” or per-user consent state beyond what is visible via Graph (
Summary of actionable checks before escalation:
- Remove
prompt=consent/prompt=admin_consentfrom non-admin sign-in flows. - Confirm user consent settings do not block the scenario, or rely solely on admin consent without user prompts.
- Ensure scopes in the sign-in request exactly match the admin-consented scopes.
- Verify whether the app requires assignment; if so, ensure users are assigned and admin consent is tenant-wide.
- Review audit logs for Risky application detected or related consent-blocking events.
- If all above are correct and AADSTS90094 persists only for non-admin users, open a Microsoft support ticket for tenant-level investigation.
References:
- Troubleshoot consent issues in Microsoft Entra ID
- Unexpected error when performing consent to an application
- Unexpected consent prompt when signing in to an application
- Convert single-tenant app to multitenant on Microsoft Entra ID
- Overview of user and admin consent
- Admin consent on the Microsoft identity platform
- App consent grant investigation
- Corporate account apps registration error: AADSTS90094 - Microsoft Q&A