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.
AADSTS50105
The signed in user isn't assigned to a role for the signed in app.
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
- In the Microsoft Entra admin center, go to
Entra ID > Enterprise apps > All applications, open the app and selectProperties. CheckAssignment required?. - To keep access restricted, open
Users and groupsand selectAdd user/group. Choose the user, or a group they are a direct member of, pick a role (Default Accessif the app has no named roles) and selectAssign. Assigning a group needs Microsoft Entra ID P1 or P2. - 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. - Test with the affected user's account, not a Global Administrator.
- To script assignments:
New-MgUserAppRoleAssignmentin Microsoft Graph PowerShell, orNew-EntraUserAppRoleAssignmentandNew-EntraGroupAppRoleAssignmentin Microsoft Entra PowerShell.
Fix it: the person signing in
- 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 descMicrosoft 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, CorrelationIdReading 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.
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
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.
S11. Microsoft (Microsoft Learn), Assign users and groups to an application. Retrieved 2026-11-25.
replace New-EntraUserAppRoleAssignment with New-EntraGroupAppRoleAssignment
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.
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.
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.
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.
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.
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
S69. Microsoft (Microsoft Learn, Microsoft Graph PowerShell), Get-MgAuditLogSignIn (Microsoft.Graph.Reports). Retrieved 2026-11-25.
-All List all pages.
