{
  "schemaVersion": "1.0",
  "code": "50105",
  "name": "EntitlementGrantsNotFound",
  "title": "AADSTS50105: User not assigned to a role for the app",
  "url": "https://brambrinkmeier.com/entra/aadsts/50105/",
  "alternates": {
    "markdown": "https://brambrinkmeier.com/entra/aadsts/50105.md",
    "json": "https://brambrinkmeier.com/api/aadsts/50105.json",
    "html": "https://brambrinkmeier.com/entra/aadsts/50105/"
  },
  "description": "AADSTS50105: the user signed in but isn't assigned to an app that requires assignment. Least privilege working; watch sensitive apps. With KQL.",
  "summary": "AADSTS50105 means the user signed in successfully but isn't assigned to the application, and the app has \"Assignment required\" set to Yes. That is least privilege working. Fix it by assigning the user or a group, not by switching assignment off. Watch for repeated 50105 on sensitive apps.",
  "inMicrosoftReference": true,
  "unlistedChecked": null,
  "meaningText": "Microsoft's description:\n\n> **EntitlementGrantsNotFound**: The signed in user isn't assigned to a role for the signed in app. Assign the user to the app.\n\nMicrosoft's troubleshooting article gives the cause:\n\n> The enterprise application's service principal has Assignment required? set to Yes, and the requesting user doesn't have an app role assignment",
  "sections": [
    {
      "heading": "What does AADSTS50105 mean?",
      "text": "Microsoft's description:\n\n> **EntitlementGrantsNotFound**: The signed in user isn't assigned to a role for the signed in app. Assign the user to the app.\n\nMicrosoft's troubleshooting article gives the cause:\n\n> The enterprise application's service principal has Assignment required? set to Yes, and the requesting user doesn't have an app role assignment"
    },
    {
      "heading": "Is it an attack?",
      "text": "Almost always not. The usual causes are a new joiner who hasn't been added to the app's group yet, someone following a link to an app they don't use, or an assignment made through a **nested group**. The troubleshooting article advises: *\"For predictable access, don't rely on nested group membership.\"* Assign the user directly, or use a group the user is a direct member of.\n\nThe security point is what 50105 represents: **\"Assignment required\" is a least-privilege control, and 50105 is it refusing access.** That is the outcome you want.\n\n| Pattern | Likely meaning |\n|---|---|\n| One user, one app, a few attempts | Missing assignment or nested group. Benign. |\n| New starters failing on day one | Provisioning lag. Benign. |\n| One account trying many apps it isn't assigned to, in a short window | **Investigate.** A compromised account exploring what it can reach (reasoning, not a Microsoft statement). |\n| Rising 50105 on a sensitive app (admin portals, finance, HR) | Either a broken group, or people trying an app they aren't entitled to. Check which. |\n\nMicrosoft's description says \"the signed in user\", so the credential stage succeeded before this check. Whoever produced the row either is that user or holds their credentials."
    },
    {
      "heading": "How do I find it in my logs (KQL)?",
      "text": "Accounts hitting many different apps they aren't assigned to:\n\n```kusto\nSigninLogs\n| where TimeGenerated > ago(7d)\n| where ResultType == \"50105\"\n| summarize DeniedApps = dcount(AppId),\n            AppNames = make_set(AppDisplayName, 10),\n            IPs = make_set(IPAddress, 10),\n            Attempts = count()\n          by UserPrincipalName\n| where DeniedApps >= 3\n| sort by DeniedApps desc\n```\n\nDaily 50105 per app, to see a broken assignment or a new pattern:\n\n```kusto\nSigninLogs\n| where TimeGenerated > ago(30d)\n| where ResultType == \"50105\"\n| summarize Users = dcount(UserPrincipalName), Attempts = count()\n          by AppDisplayName, AppId, bin(TimeGenerated, 1d)\n| sort by TimeGenerated desc, Users desc\n```\n\nThe threshold of 3 apps is a starting point, not a tested value. Tune it to your tenant."
    },
    {
      "heading": "How does Conditional Access affect it?",
      "text": "- 50105 is not a Conditional Access result. Assignment is a property of the enterprise application, checked separately from your CA policies.\n- A policy that targets \"All resources\" still applies to the user's other apps. Assignment decides **who** gets a token for this app; Conditional Access decides **under what conditions**. Use both."
    },
    {
      "heading": "How do I fix AADSTS50105?",
      "text": "**For the user:** ask your IT team for access to the app. Tell them the app name and the time you tried.\n\n**For admins:**\n1. Open **Enterprise applications** > the app > **Users and groups**, and assign the user, or add them to a group that is assigned directly (not through a nested group).\n2. Do **not** set **Assignment required?** to **No** as a quick fix. Microsoft's troubleshooting article warns: \"Setting Assignment required? to No broadens token eligibility to include unassigned users and applications.\"\n3. Remember Global Administrators are not a test of the setting. Microsoft notes: \"The assignment requirement doesn't apply to Global Administrators.\" An app that works for an admin and fails for everyone else is behaving as configured."
    }
  ],
  "microsoftWording": {
    "text": "**EntitlementGrantsNotFound**: The signed in user isn't assigned to a role for the signed in app. Assign the user to the app.",
    "source": "Microsoft's error code reference, as quoted on the page",
    "sourceUrl": "https://learn.microsoft.com/en-us/entra/identity-platform/reference-error-codes"
  },
  "securityReading": {
    "category": {
      "id": "app-config",
      "label": "App configuration"
    },
    "kind": {
      "id": "failure",
      "label": "Failure"
    },
    "attackSignal": {
      "level": "low",
      "label": "Low: usually configuration or user error"
    },
    "mitre": [
      {
        "id": "T1078.004",
        "name": "Valid Accounts: Cloud Accounts",
        "url": "https://attack.mitre.org/techniques/T1078/004/"
      }
    ],
    "tables": [
      "SigninLogs"
    ],
    "isItAnAttack": "Almost always not. The usual causes are a new joiner who hasn't been added to the app's group yet, someone following a link to an app they don't use, or an assignment made through a **nested group**. The troubleshooting article advises: *\"For predictable access, don't rely on nested group membership.\"* Assign the user directly, or use a group the user is a direct member of.\n\nThe security point is what 50105 represents: **\"Assignment required\" is a least-privilege control, and 50105 is it refusing access.** That is the outcome you want.\n\n| Pattern | Likely meaning |\n|---|---|\n| One user, one app, a few attempts | Missing assignment or nested group. Benign. |\n| New starters failing on day one | Provisioning lag. Benign. |\n| One account trying many apps it isn't assigned to, in a short window | **Investigate.** A compromised account exploring what it can reach (reasoning, not a Microsoft statement). |\n| Rising 50105 on a sensitive app (admin portals, finance, HR) | Either a broken group, or people trying an app they aren't entitled to. Check which. |\n\nMicrosoft's description says \"the signed in user\", so the credential stage succeeded before this check. Whoever produced the row either is that user or holds their credentials.",
    "conditionalAccess": {
      "heading": "How does Conditional Access affect it?",
      "text": "- 50105 is not a Conditional Access result. Assignment is a property of the enterprise application, checked separately from your CA policies.\n- A policy that targets \"All resources\" still applies to the user's other apps. Assignment decides **who** gets a token for this app; Conditional Access decides **under what conditions**. Use both."
    }
  },
  "kql": [
    {
      "title": null,
      "leadIn": "Accounts hitting many different apps they aren't assigned to:",
      "query": "SigninLogs\n| where TimeGenerated > ago(7d)\n| where ResultType == \"50105\"\n| summarize DeniedApps = dcount(AppId),\n            AppNames = make_set(AppDisplayName, 10),\n            IPs = make_set(IPAddress, 10),\n            Attempts = count()\n          by UserPrincipalName\n| where DeniedApps >= 3\n| sort by DeniedApps desc"
    },
    {
      "title": null,
      "leadIn": "Daily 50105 per app, to see a broken assignment or a new pattern:",
      "query": "SigninLogs\n| where TimeGenerated > ago(30d)\n| where ResultType == \"50105\"\n| summarize Users = dcount(UserPrincipalName), Attempts = count()\n          by AppDisplayName, AppId, bin(TimeGenerated, 1d)\n| sort by TimeGenerated desc, Users desc"
    }
  ],
  "kqlSectionText": "Accounts hitting many different apps they aren't assigned to:\n\n```kusto\nSigninLogs\n| where TimeGenerated > ago(7d)\n| where ResultType == \"50105\"\n| summarize DeniedApps = dcount(AppId),\n            AppNames = make_set(AppDisplayName, 10),\n            IPs = make_set(IPAddress, 10),\n            Attempts = count()\n          by UserPrincipalName\n| where DeniedApps >= 3\n| sort by DeniedApps desc\n```\n\nDaily 50105 per app, to see a broken assignment or a new pattern:\n\n```kusto\nSigninLogs\n| where TimeGenerated > ago(30d)\n| where ResultType == \"50105\"\n| summarize Users = dcount(UserPrincipalName), Attempts = count()\n          by AppDisplayName, AppId, bin(TimeGenerated, 1d)\n| sort by TimeGenerated desc, Users desc\n```\n\nThe threshold of 3 apps is a starting point, not a tested value. Tune it to your tenant.",
  "fix": {
    "short": "Admin: open Enterprise applications > the app > Users and groups and assign the user, or a group they are a direct member of. Don't set Assignment required to No as a quick fix. User: ask IT for access and give them the app name and the time you tried.",
    "steps": "**For the user:** ask your IT team for access to the app. Tell them the app name and the time you tried.\n\n**For admins:**\n1. Open **Enterprise applications** > the app > **Users and groups**, and assign the user, or add them to a group that is assigned directly (not through a nested group).\n2. Do **not** set **Assignment required?** to **No** as a quick fix. Microsoft's troubleshooting article warns: \"Setting Assignment required? to No broadens token eligibility to include unassigned users and applications.\"\n3. Remember Global Administrators are not a test of the setting. Microsoft notes: \"The assignment requirement doesn't apply to Global Administrators.\" An app that works for an admin and fails for everyone else is behaving as configured."
  },
  "labReproduced": null,
  "labSectionText": null,
  "labRuns": [],
  "verification": "documentation",
  "related": [
    "53003",
    "50020",
    "50011",
    "700016",
    "65001",
    "501051"
  ],
  "coveredBy": [],
  "sources": [
    {
      "title": "Microsoft Entra authentication and authorization error codes",
      "url": "https://learn.microsoft.com/en-us/entra/identity-platform/reference-error-codes"
    },
    {
      "title": "Troubleshoot error AADSTS50105 (user not assigned to a role)",
      "url": "https://learn.microsoft.com/en-us/troubleshoot/entra/entra-id/app-integration/error-code-aadsts50105-user-not-assigned-role"
    },
    {
      "title": "SigninLogs table reference (Azure Monitor)",
      "url": "https://learn.microsoft.com/en-us/azure/azure-monitor/reference/tables/signinlogs"
    }
  ],
  "published": null,
  "lastUpdated": "2026-10-25",
  "lastVerified": null,
  "license": "CC BY 4.0",
  "licenseUrl": "https://creativecommons.org/licenses/by/4.0/",
  "licenseNote": "CC BY 4.0 covers the author's own text and classification fields. Quoted Microsoft error wording belongs to Microsoft, is quoted with its source and can change.",
  "attribution": "Bram Brinkmeier, \"AADSTS50105: User not assigned to a role for the app\", https://brambrinkmeier.com/entra/aadsts/50105/ (CC BY 4.0)",
  "microsoftErrorLookup": "https://login.microsoftonline.com/error?code=50105"
}
