Home › Entra ID › AADSTS90094

Entra ID · AADSTS90094 · Windows 11 23H2

Entra ID AADSTS90094 Windows 11 23H2 Admin Consent Required

AADSTS90094 error occurs when an app requests permissions requiring admin consent, preventing user sign-in. Fix involves granting necessary admin consent in Entra ID.

Error Details

FactValueSourceNote
Exact error stringAADSTS90094: The app requires admin consent to access the requested permissions.Event Viewer - Windows Logs - Application-> Event ID
Affected build rangeWindows 11 23H2System Information
Registry key involvedHKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\EntraID\SettingsRegistry Editor-> Check for app permissions
Relevant service/endpoint URLhttps://login.microsoftonline.com/common/oauth2/v2.0/tokenNetwork Trace
Log line signatureAADSTS90094: The app requires admin consent to access the requested permissions.Event Viewer - Windows Logs - Application-> Event ID

Log Files to Check

What This Error Actually Means

The error code AADSTS90094 indicates that an application is attempting to access resources or permissions that require administrative consent. Specifically, this error is raised by the Entra ID provider component in Windows 11 when a non-administrator user tries to sign in to an app that requests privileges only available to admins. The error originates from the OAuth2 token endpoint at https://login.microsoftonline.com/common/oauth2/v2.0/token, which is responsible for authenticating and authorizing access to Microsoft services. This issue typically occurs during application enrollment or sign-in processes where the app's requested permissions exceed the user's authorization level. The Entra ID provider logs this event with the exact error string AADSTS90094: The app requires admin consent to access the requested permissions. in the following log files: - C:\Windows\Logs\Application\Microsoft-Windows-EntraIDProvider/Admin/Operational.evtx - C:\ProgramData\Microsoft\IdentityService\Logs\idaudit.log

Affected Versions and Scope

This error is observed in Windows 11 version 23H2, specifically when using the Entra ID provider. It affects environments where applications request admin-level permissions without prior consent from an administrator. The issue does not occur in earlier versions of Windows or in configurations where admin consent has already been granted for the affected application.

Where To Look First: Logs and Event IDs

To diagnose this error, examine the following logs: 1. **Event Viewer**: Navigate to Windows Logs > Application and search for events with the exact log line AADSTS90094: The app requires admin consent to access the requested permissions.. Relevant Event IDs include 3005 and 3012, which correspond to authentication failures and consent issues. 2. **Entra ID Operational Log**: Check C:\Windows\Logs\Application\Microsoft-Windows-EntraIDProvider/Admin/Operational.evtx for detailed error contexts. 3. **Identity Audit Log**: Review C:\ProgramData\Microsoft\IdentityService\Logs\idaudit.log for additional diagnostic information. Use the following PowerShell cmdlet to filter events related to this issue: Get-WinEvent -LogName "Microsoft-Windows-EntraIDProvider/Admin" -MaxEvents 50 | Where-Object { $_.Message -like "*AADSTS90094*" }

Root Causes

1. Application Requests Admin-Level Permissions Without Consent

The app may be requesting permissions that require admin consent, such as accessing sensitive data or performing system-wide operations. This can happen if the app was not properly configured to request user-level permissions or if it's a new application without prior admin approval.

2. Tenant-Wide Admin Consent Settings Are Disabled

In some cases, tenant administrators may have disabled the ability for apps to request admin consent automatically. This setting is controlled via the Azure AD admin center under Enterprise Applications > Permissions and consent settings.

3. Entra ID Provider Configuration Issue

Misconfigurations in the Entra ID provider can prevent proper handling of admin consent requests. This might involve incorrect registry settings or service endpoint configurations.

Fix Procedure

  1. Check Application Permissions: Navigate to the Microsoft 365 Admin Center and review the permissions requested by the problematic app under Enterprise Applications > [App Name] > Permissions.
  2. Grant Admin Consent: Use the following PowerShell cmdlet to grant admin consent programmatically: Invoke-MgGraphRequest -Method POST -Uri "https://graph.microsoft.com/v1.0/oauth2PermissionGrants"
  3. Verify Entra ID Configuration: Check the registry key HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\EntraID\Settings to ensure all required permissions are correctly configured.
  4. Restart Entra ID Services: Use the following cmdlet to restart services: Restart-Service -Name "EntsSvc"
  5. Monitor Logs Post-Fix: Review logs in C:\Windows\Logs\Application\Microsoft-Windows-EntraIDProvider/Admin/Operational.evtx for success messages indicating the issue has been resolved.
Warning: Modifying registry keys without proper authorization can disrupt enrolled devices. Always back up configurations before making changes.

Error Code Variants

Error CodeDescription
AADSTS90094Admin consent required for requested permissions.
AADSTS50106Insufficient privileges to complete the request.
AADSTS70002Application is not configured correctly in Azure AD.

Verification

After applying fixes, verify success by: 1. Checking for log entries indicating successful admin consent in C:\ProgramData\Microsoft\IdentityService\Logs\idaudit.log. 2. Testing the application sign-in process to ensure it no longer triggers the error. 3. Using the following cmdlet to confirm service status: dsregcmd /status | Select-String "Device is enrolled"

Prevention

To prevent recurrence, implement the following measures: 1. Use Intune to enforce policies requiring admin consent for app installations. 2. Regularly audit application permissions via Azure AD admin center under Enterprise Applications > Permissions and consent settings. 3. Monitor Entra ID provider logs using scheduled tasks or monitoring tools to detect early signs of configuration drift.
TIP: Use the following PowerShell cmdlet for quick diagnostics: Get-MgDeviceManagementManagedDevice -Filter "deviceEnrollmentType eq 'windowsAutoEnrollment'"
This comprehensive guide ensures that sysadmins can effectively diagnose, resolve, and prevent the AADSTS90094 error in Entra ID environments.

Sources & References

Related Guides

Get new error code fixes by email

Product-specific solutions for Intune, Autopilot, SCCM and Entra ID — straight to your inbox. No spam.