Entra ID sign-in error

AADSTS50105: User is not assigned to the application

AADSTS50105 means the app requires assignment and the user has none. The cause, how admins assign users or groups, and what users can do.

Last updated Checked against Microsoft Learn on Look up another code

AADSTS50105

Consent, roles and assignmentWho fixes it:Tenant admin

The signed in user isn't assigned to a role for the signed in app.

Microsoft's description (EntitlementGrantsNotFound), from the Microsoft Entra error code reference

What it means

The app's enterprise application has Assignment required? set to Yes, and the person signing in has no app role assignment, either directly or through a group they are a direct member of. Nested groups do not count. The check does not apply to Global Administrators, so an admin's test sign-in can work while users still fail.

Fix it: tenant admins

  1. In the Microsoft Entra admin center, go to Entra ID > Enterprise apps > All applications, open the app and select Properties. Check Assignment required?.
  2. To keep access restricted, open Users and groups and select Add user/group. Choose the user, or a group they are a direct member of, pick a role (Default Access if the app has no named roles) and select Assign. Assigning a group needs Microsoft Entra ID P1 or P2.
  3. If everyone in the tenant should be able to use the app, and that matches your access policy, set Assignment required? to No and save. Unassigned users and applications can then get tokens for it. Conditional Access and the app's own authorisation still apply.
  4. Test with the affected user's account, not a Global Administrator.
  5. To script assignments: New-MgUserAppRoleAssignment in Microsoft Graph PowerShell, or New-EntraUserAppRoleAssignment and New-EntraGroupAppRoleAssignment in Microsoft Entra PowerShell.

Fix it: the person signing in

  1. Ask your IT team to assign you to the app. Send them the Request ID, Correlation ID and timestamp from the error screen.

What to check in the sign-in log

The failed entry names the user and the application. If the user should get access through a group, check the group is assigned to the app and the user is a direct member of it.

Related codes

Microsoft sources

Find who is hitting AADSTS50105

Sign-in logs record the code without the AADSTS prefix: as status/errorCode in Microsoft Graph S04 and as ResultType in the SigninLogs table in Log Analytics S05. The SigninLogs and Microsoft Graph queries below cover interactive sign-ins. Non-interactive sign-ins are in the AADNonInteractiveUserSignInLogs table, which documents the error code in ResultSignature S41. If you query that table, test ResultType as well. For one failed sign-in, paste its error message into the lookup to get queries for its Correlation ID.

Log Analytics (KQL), last 7 days

SigninLogs
| where TimeGenerated > ago(7d) and ResultType == "50105"
| summarize Failures = count(), Last = max(TimeGenerated) by UserPrincipalName, AppDisplayName
| sort by Failures desc

Microsoft Graph PowerShell, last 7 days

Connect-MgGraph -Scopes "AuditLog.Read.All"
$since = (Get-Date).ToUniversalTime().AddDays(-7).ToString("yyyy-MM-ddTHH:mm:ssZ")
Get-MgAuditLogSignIn -Filter "status/errorCode eq 50105 and createdDateTime ge $since" -All |
  Select-Object CreatedDateTime, UserPrincipalName, AppDisplayName, CorrelationId

Reading sign-in logs needs at least the Reports Reader role S06; the Graph call needs the AuditLog.Read.All permission S42, and -All returns every page of results S69.

Sources for this page

Microsoft's description is quoted from the Microsoft Entra error code reference; it is Microsoft's text and is not covered by our CC BY 4.0 licence. The cause and fix steps are our own wording, published under CC BY 4.0; each source below is the Microsoft page they rest on, with the passage we checked. Rules for every page are in the methodology.

  1. S01. Microsoft (Microsoft Learn), Microsoft Entra authentication and authorization error codes. Retrieved 2026-11-25.

    | AADSTS50105 | EntitlementGrantsNotFound - The signed in user isn't assigned to a role for the signed in app.

    Error codes are subject to change at any time in order to provide more granular error messages

    Error codes and messages are subject to change. For the most current info, take a look at the

    You can also link directly to a specific error by adding the error code number to the URL

  2. S10. Microsoft (Microsoft Learn), Error AADSTS50105: The signed-in user isn't assigned to a role for the application. Retrieved 2026-11-25.

    Make this change only if it matches your organization's intended access policy.

    Other access controls, such as Conditional Access policies and application-specific authorization, still apply.

    The enterprise application's service principal has Assignment required? set to Yes, and the requesting user doesn't have an app role assignment to the application.

    For predictable access, don't rely on nested group membership. Assign the user directly, or use a group of which the user is a direct member.

    Browse to Microsoft Entra ID > Enterprise apps > All applications.

    Select an application role. If the application doesn't expose a named role, select Default Access.

    The assignment requirement doesn't apply to Global Administrators. A Global Administrator can sign in without an assignment, so test with the affected user.

    Setting Assignment required? to No broadens token eligibility to include unassigned users and applications.

    Group-based assignment requires a Microsoft Entra ID P1 or P2 license.

  3. S11. Microsoft (Microsoft Learn), Assign users and groups to an application. Retrieved 2026-11-25.

    replace New-EntraUserAppRoleAssignment with New-EntraGroupAppRoleAssignment

  4. S12. Microsoft (Microsoft Learn), Restrict a Microsoft Entra app to a set of users. Retrieved 2026-11-25.

    When an application requires assignment, user consent for that application isn't allowed.

  5. S04. Microsoft (Microsoft Learn, Microsoft Graph), signIn resource type. Retrieved 2026-11-25.

    Supports $filter (eq) on errorCode property.

    The request ID sent from the client when the sign-in is initiated. Used to troubleshoot sign-in activity.

  6. S05. Microsoft (Microsoft Learn, Azure Monitor), Azure Monitor Logs reference - SigninLogs. Retrieved 2026-11-25.

    Provides the 5-6 digit error code that's generated during a sign-in event. 0 indicates success; other values are failures.

    The identifier that's sent from the client when sign-in is initiated.

  7. S06. Microsoft (Microsoft Learn), How to troubleshoot sign-in errors. Retrieved 2026-11-25.

    Reports Reader is the least privileged role required to access the activity logs.

    any user can access their own sign-ins from https://mysignins.microsoft.com.

  8. S41. Microsoft (Microsoft Learn, Azure Monitor), Azure Monitor Logs reference - AADNonInteractiveUserSignInLogs. Retrieved 2026-11-25.

    Contains the error code, if any, for the sign-in operation.

  9. S42. Microsoft (Microsoft Learn, Microsoft Graph), List signIns. Retrieved 2026-11-25.

    To avoid having the request time out, apply the $filter parameter with a time range for which to get all sign-ins

    Sign-ins that are interactive in nature

  10. S69. Microsoft (Microsoft Learn, Microsoft Graph PowerShell), Get-MgAuditLogSignIn (Microsoft.Graph.Reports). Retrieved 2026-11-25.

    -All List all pages.

Back to the AADSTS Error Code Lookup · All 351 codes