AADSTS50105: user isn't assigned to the app
Error / symptom
Section titled “Error / symptom”A user tries to open an app and sign-in stops with:
AADSTS50105: The signed in user is not assigned to a role for the application.The longer version of the message says the admin set the app to block users unless they are assigned, and that the user isn’t a direct member of a group with access and wasn’t assigned directly.
It can show up for apps that use SAML, OpenID Connect, OAuth 2.0, WS-Federation, or Application Proxy pre-authentication. Other users of the same app often sign in fine.
The app’s Assignment required? setting is Yes, and this user has no qualifying assignment. With that setting on, Entra ID only lets in users who are assigned.
A user counts as assigned in one of two ways:
| How access is given | What to check |
|---|---|
| Direct assignment | The user is listed under the app’s Users and groups |
| Group assignment | A group is listed under Users and groups and the user is a direct member of it |
Common reasons the check fails:
| Cause | Typical example |
|---|---|
| User was never assigned | New starter added to the team but not to the app |
| User is only in a nested group | User is in “Sales-North”, which is a member of the assigned group “Sales”. Nested membership isn’t supported for app assignment |
| Group assignment isn’t available | Tenant has no Entra ID P1 or P2, so groups can’t be assigned and only individual users work |
| Wrong type of group | Group-based assignment to SaaS apps is supported for security groups |
| Someone switched “Assignment required?” to Yes | Setting changed without assigning the existing users first |
Sign in as at least a Cloud Application Administrator. An Application Administrator or an owner of the enterprise app can also do this.
- Decide if the app should be limited to assigned users.
- Open the Microsoft Entra admin center.
- Go to Entra ID > Enterprise apps > All applications and open the app.
- Select Properties and look at Assignment required?.
- If only some people should use the app (most cases), keep it on Yes and assign the user.
- In the app, select Users and groups > Add user/group.
- Under Users and groups, select None Selected, then find the user or group (for example
user1@yourdomain.com) and choose Select. - Under Select a role, pick the right role. If the app has no named roles, use Default Access.
- Select Assign.
- If you use a group, make sure the user is a direct member. If they are only in a child group, add them to the assigned group itself, or assign the child group to the app as well.
- Only if everyone in the tenant should have access, set Assignment required? to No. On Properties, set it to No and select Save. This opens the app to all users in the tenant. Conditional Access and the app’s own permissions still apply.
- Test with the affected user, not with an admin account. Global Administrators aren’t blocked by the assignment check, so an admin test proves nothing.
Note on roles claim: Default Access is enough to pass the assignment check, but it doesn’t put a roles claim in the token. If the app needs a role to work, assign a named app role.
PowerShell check
Section titled “PowerShell check”List everyone assigned to the app, and confirm whether assignment is required. This is read-only and needs the Application.Read.All permission.
Connect-MgGraph -Scopes 'Application.Read.All' -NoWelcome
$appName = 'Your App Name'$sp = Get-MgServicePrincipal -Filter "displayName eq '$appName'"
# Is "Assignment required?" on?$sp | Select-Object DisplayName, AppId, AppRoleAssignmentRequired
# Who is assigned (users and groups)?Get-MgServicePrincipalAppRoleAssignedTo -ServicePrincipalId $sp.Id -All | Select-Object PrincipalDisplayName, PrincipalType, AppRoleId, CreatedDateTime | Sort-Object PrincipalType, PrincipalDisplayName | Format-Table -AutoSizeHow to read it:
AppRoleAssignmentRequiredisTrue→ only the people and groups listed below can sign in.- The user isn’t listed, and none of the listed groups has them as a direct member → that is your AADSTS50105.
- An
AppRoleIdof00000000-0000-0000-0000-000000000000means Default Access (no named role).
New or removed assignments can take a short time to show up, so wait a moment before you re-check.
Related errors
Section titled “Related errors”- AADSTS501051: the same kind of assignment block, but for an app-only (service principal) sign-in rather than a user.
- AADSTS50076: once the user is assigned, a Conditional Access policy may still ask for MFA. That’s a different error with a different fix.
- Don’t set Assignment required? to No just to make the error go away. You open the app to every user in the tenant.
- Don’t test the fix with a Global Administrator account. It skips the check.
- Don’t rely on nested groups for app access. Assign the user directly or use a group they belong to directly.
- Don’t assign the user to a random app role to get them in. Pick the role the app actually expects.
Weekly · 5-minute read
The Identity Brief
Identity & Microsoft 365 changes that need action, one SOP, one script — every week. Verified against official Microsoft sources.
No spam. Unsubscribe anytime. Privacy