{
  "schemaVersion": "1.0",
  "code": "65001",
  "name": "DelegationDoesNotExist",
  "title": "AADSTS65001: User or admin has not consented to the app",
  "url": "https://brambrinkmeier.com/entra/aadsts/65001/",
  "alternates": {
    "markdown": "https://brambrinkmeier.com/entra/aadsts/65001.md",
    "json": "https://brambrinkmeier.com/api/aadsts/65001.json",
    "html": "https://brambrinkmeier.com/entra/aadsts/65001/"
  },
  "description": "AADSTS65001: no user or admin has consented to the permissions an app requested. Consent phishing context: watch apps that flip to success. KQL.",
  "summary": "AADSTS65001 means an app asked for a token for permissions that no user or admin has consented to. For a new or misconfigured app it is routine. The security angle is consent phishing: watch for an unfamiliar app that flips from 65001 to success, then check the audit log for \"Consent to application\" and IsAdminConsent.",
  "inMicrosoftReference": true,
  "unlistedChecked": null,
  "meaningText": "Microsoft's description:\n\n> **DelegationDoesNotExist**: The user or administrator hasn't consented to use the application with ID X. Send an interactive authorization request for this user and resource.\n\nThe app asked for a token, but the permission grant it needs doesn't exist. The fix Microsoft names is an interactive request, which is where the consent prompt appears.\n\nA sibling: **[65004](https://brambrinkmeier.com/entra/aadsts/65004/) UserDeclinedConsent**, *\"User declined to consent to access the app.\"* That is the user saying no at the prompt.",
  "sections": [
    {
      "heading": "What does AADSTS65001 mean?",
      "text": "Microsoft's description:\n\n> **DelegationDoesNotExist**: The user or administrator hasn't consented to use the application with ID X. Send an interactive authorization request for this user and resource.\n\nThe app asked for a token, but the permission grant it needs doesn't exist. The fix Microsoft names is an interactive request, which is where the consent prompt appears.\n\nA sibling: **[65004](https://brambrinkmeier.com/entra/aadsts/65004/) UserDeclinedConsent**, *\"User declined to consent to access the app.\"* That is the user saying no at the prompt."
    },
    {
      "heading": "Reproduced in the lab",
      "text": "On 25 October 2026 an automated lab run sent a token request with the **correct** password for a test user, to a lab app nobody had consented to. The password was right, so the request got past the credential check and stopped at the missing consent. Instead of a token or an MFA prompt, Entra returned `AADSTS65001` with this first line:\n\n> AADSTS65001: The user or administrator has not consented to use the application with ID '{app-id}' named 'lab-signin-client'.\n\nThat confirms the code and its wording at the token endpoint.\n\nThe same attempt in the lab tenant's sign-in log (Entra admin center, interactive user sign-ins), with identifiers left out:\n\n| Field | Value in the lab row |\n|---|---|\n| Status | Interrupted |\n| Sign-in error code | 65001 |\n| Application | lab-signin-client |\n| Authentication requirement | Single-factor authentication |\n| Conditional Access | Not Applied |\n| User type | Member |\n\nThe row is logged as **Interrupted**, not Failure: the password was right and the sign-in waits for consent. A portal view filtered on Status = Failure misses it; filter on the error code instead. The KQL below was run on the lab rows ([how](https://brambrinkmeier.com/methodology/)). Not tested yet: the first query needs a successful sign-in after the consent error and the second needs a consent event in `AuditLogs`, and the exported lab rows have neither."
    },
    {
      "heading": "Is it an attack?",
      "text": "On its own, no. 65001 shows up whenever an app is used before anyone has consented to it, or when a developer adds a new permission and forgets the consent step.\n\nThe security relevance is **consent phishing** (illicit consent grant). Microsoft describes the attack like this:\n\n> the attacker creates a registered application in Microsoft Entra ID that requests access to data such as contact information, email, or documents. The attacker then tricks an end user into granting that application consent … After the illicit application is granted consent, it has account-level access to data without the need for an organizational account. Normal remediation steps (for example, resetting passwords or requiring multifactor authentication (MFA)) aren't effective against this type of attack\n\n65001 is the state the attacker needs to get past. The interesting moment is when it stops. The [consent phishing guide](https://brambrinkmeier.com/guides/investigate-consent-phishing-entra-id/) covers the full investigation and the removal steps.\n\n| Pattern | Likely meaning |\n|---|---|\n| 65001 for a known, internal app right after a permission change | A developer added a permission and consent wasn't granted yet. Benign. |\n| 65001 for an app ID you don't recognise, from several users in a short window | Users were sent a link to an app nobody approved. Look at the app and who published it. |\n| An unfamiliar app goes from 65001 to successful sign-ins | **Someone consented.** Find the consent event in the audit log and check whether it was user or admin consent. |\n| 65001 for an unknown app in non-interactive or service principal sign-ins | Something is trying to use permissions it was never granted. Identify the app before anyone consents to it. |\n\nThe table above is reasoning built on Microsoft's attack description, not a list of Microsoft detections."
    },
    {
      "heading": "How do I find it in my logs (KQL)?",
      "text": "Apps that had 65001 and then had successful user sign-ins:\n\n```kusto\nlet window = 7d;\nlet missingConsent =\n    union\n        (SigninLogs | project TimeGenerated, AppId, AppDisplayName, UserPrincipalName, ResultType),\n        (AADNonInteractiveUserSignInLogs | project TimeGenerated, AppId, AppDisplayName, UserPrincipalName, ResultType)\n    | where TimeGenerated > ago(window)\n    | where ResultType == \"65001\"\n    | summarize FirstMissing = min(TimeGenerated), MissingUsers = dcount(UserPrincipalName)\n              by AppId, AppDisplayName;\nunion\n    (SigninLogs | project TimeGenerated, AppId, UserPrincipalName, ResultType),\n    (AADNonInteractiveUserSignInLogs | project TimeGenerated, AppId, UserPrincipalName, ResultType)\n| where TimeGenerated > ago(window)\n| where ResultType == \"0\"\n| join kind=inner missingConsent on AppId\n| where TimeGenerated > FirstMissing\n| summarize FirstSuccessAfter = min(TimeGenerated), SuccessUsers = dcount(UserPrincipalName)\n          by AppId, AppDisplayName, FirstMissing, MissingUsers\n| sort by FirstSuccessAfter desc\n```\n\nThen find the consent itself. Microsoft's guidance is to search the **Microsoft Purview (unified) audit log** for the activity **\"Consent to application\"** and check `IsAdminConsent`. The Entra audit log records the same operation; in Log Analytics that is the `AuditLogs` table:\n\n```kusto\nAuditLogs\n| where TimeGenerated > ago(30d)\n| where OperationName == \"Consent to application\"\n| extend Actor = tostring(InitiatedBy.user.userPrincipalName),\n         AppName = tostring(TargetResources[0].displayName),\n         AppObjectId = tostring(TargetResources[0].id),\n         ConsentDetails = TargetResources[0].modifiedProperties\n| project TimeGenerated, Actor, AppName, AppObjectId, Result, ConsentDetails\n| sort by TimeGenerated desc\n```\n\n`ConsentDetails` holds the modified properties of the grant, which is where the admin-consent flag and the granted permissions appear. In the Entra audit log those are the properties named `ConsentContext.IsAdminConsent` and `ConsentAction.Permissions`, not a top-level `IsAdminConsent` field as in Purview. The exact field paths inside `InitiatedBy` and `TargetResources` vary; check them against a real event in your workspace before you build an alert on them.\n\n`ResultType` is a **string** column, so compare it with `\"65001\"`, not `65001`."
    },
    {
      "heading": "How do Conditional Access and MFA affect it?",
      "text": "- 65001 isn't caused by Conditional Access. It is a missing permission grant.\n- MFA does not protect against consent phishing. In Microsoft's words, resetting passwords or requiring MFA *\"aren't effective against this type of attack\"*, because the app keeps its own access after consent.\n- The control that matters is who may consent. Restrict user consent and turn on the admin consent workflow, so a user who hits a consent prompt for a risky app gets [90095](https://brambrinkmeier.com/entra/aadsts/90095/) and a request goes to a reviewer, instead of granting access themselves."
    },
    {
      "heading": "How do I fix AADSTS65001?",
      "text": "**For developers:** grant consent for the permissions the app requests (admin consent for permissions that need it), then retry the sign-in.\n\n**For admins:**\n1. For an app ID you don't recognise, find out who published it and what it asks for **before** anyone consents.\n2. If an unknown app flipped from 65001 to success, find the \"Consent to application\" event, check whether it was admin consent, and review what the app accessed.\n3. Remove consent from and disable any app you confirm as malicious. Resetting the user's password alone does not cut off its access.\n4. Restrict user consent and enable the admin consent workflow as your standing posture."
    }
  ],
  "microsoftWording": {
    "text": "**DelegationDoesNotExist**: The user or administrator hasn't consented to use the application with ID X. Send an interactive authorization request for this user and resource.",
    "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": "consent",
      "label": "Consent and app permissions"
    },
    "kind": {
      "id": "failure",
      "label": "Failure"
    },
    "attackSignal": {
      "level": "medium",
      "label": "Medium: worth a look in context"
    },
    "mitre": [
      {
        "id": "T1528",
        "name": "Steal Application Access Token",
        "url": "https://attack.mitre.org/techniques/T1528/"
      },
      {
        "id": "T1566.002",
        "name": "Phishing: Spearphishing Link",
        "url": "https://attack.mitre.org/techniques/T1566/002/"
      }
    ],
    "tables": [
      "SigninLogs",
      "AADNonInteractiveUserSignInLogs",
      "AADServicePrincipalSignInLogs"
    ],
    "isItAnAttack": "On its own, no. 65001 shows up whenever an app is used before anyone has consented to it, or when a developer adds a new permission and forgets the consent step.\n\nThe security relevance is **consent phishing** (illicit consent grant). Microsoft describes the attack like this:\n\n> the attacker creates a registered application in Microsoft Entra ID that requests access to data such as contact information, email, or documents. The attacker then tricks an end user into granting that application consent … After the illicit application is granted consent, it has account-level access to data without the need for an organizational account. Normal remediation steps (for example, resetting passwords or requiring multifactor authentication (MFA)) aren't effective against this type of attack\n\n65001 is the state the attacker needs to get past. The interesting moment is when it stops. The [consent phishing guide](https://brambrinkmeier.com/guides/investigate-consent-phishing-entra-id/) covers the full investigation and the removal steps.\n\n| Pattern | Likely meaning |\n|---|---|\n| 65001 for a known, internal app right after a permission change | A developer added a permission and consent wasn't granted yet. Benign. |\n| 65001 for an app ID you don't recognise, from several users in a short window | Users were sent a link to an app nobody approved. Look at the app and who published it. |\n| An unfamiliar app goes from 65001 to successful sign-ins | **Someone consented.** Find the consent event in the audit log and check whether it was user or admin consent. |\n| 65001 for an unknown app in non-interactive or service principal sign-ins | Something is trying to use permissions it was never granted. Identify the app before anyone consents to it. |\n\nThe table above is reasoning built on Microsoft's attack description, not a list of Microsoft detections.",
    "conditionalAccess": {
      "heading": "How do Conditional Access and MFA affect it?",
      "text": "- 65001 isn't caused by Conditional Access. It is a missing permission grant.\n- MFA does not protect against consent phishing. In Microsoft's words, resetting passwords or requiring MFA *\"aren't effective against this type of attack\"*, because the app keeps its own access after consent.\n- The control that matters is who may consent. Restrict user consent and turn on the admin consent workflow, so a user who hits a consent prompt for a risky app gets [90095](https://brambrinkmeier.com/entra/aadsts/90095/) and a request goes to a reviewer, instead of granting access themselves."
    }
  },
  "kql": [
    {
      "title": null,
      "leadIn": "Apps that had 65001 and then had successful user sign-ins:",
      "query": "let window = 7d;\nlet missingConsent =\n    union\n        (SigninLogs | project TimeGenerated, AppId, AppDisplayName, UserPrincipalName, ResultType),\n        (AADNonInteractiveUserSignInLogs | project TimeGenerated, AppId, AppDisplayName, UserPrincipalName, ResultType)\n    | where TimeGenerated > ago(window)\n    | where ResultType == \"65001\"\n    | summarize FirstMissing = min(TimeGenerated), MissingUsers = dcount(UserPrincipalName)\n              by AppId, AppDisplayName;\nunion\n    (SigninLogs | project TimeGenerated, AppId, UserPrincipalName, ResultType),\n    (AADNonInteractiveUserSignInLogs | project TimeGenerated, AppId, UserPrincipalName, ResultType)\n| where TimeGenerated > ago(window)\n| where ResultType == \"0\"\n| join kind=inner missingConsent on AppId\n| where TimeGenerated > FirstMissing\n| summarize FirstSuccessAfter = min(TimeGenerated), SuccessUsers = dcount(UserPrincipalName)\n          by AppId, AppDisplayName, FirstMissing, MissingUsers\n| sort by FirstSuccessAfter desc"
    },
    {
      "title": null,
      "leadIn": "Then find the consent itself. Microsoft's guidance is to search the **Microsoft Purview (unified) audit log** for the activity **\"Consent to application\"** and check `IsAdminConsent`. The Entra audit log records the same operation; in Log Analytics that is the `AuditLogs` table:",
      "query": "AuditLogs\n| where TimeGenerated > ago(30d)\n| where OperationName == \"Consent to application\"\n| extend Actor = tostring(InitiatedBy.user.userPrincipalName),\n         AppName = tostring(TargetResources[0].displayName),\n         AppObjectId = tostring(TargetResources[0].id),\n         ConsentDetails = TargetResources[0].modifiedProperties\n| project TimeGenerated, Actor, AppName, AppObjectId, Result, ConsentDetails\n| sort by TimeGenerated desc"
    }
  ],
  "kqlSectionText": "Apps that had 65001 and then had successful user sign-ins:\n\n```kusto\nlet window = 7d;\nlet missingConsent =\n    union\n        (SigninLogs | project TimeGenerated, AppId, AppDisplayName, UserPrincipalName, ResultType),\n        (AADNonInteractiveUserSignInLogs | project TimeGenerated, AppId, AppDisplayName, UserPrincipalName, ResultType)\n    | where TimeGenerated > ago(window)\n    | where ResultType == \"65001\"\n    | summarize FirstMissing = min(TimeGenerated), MissingUsers = dcount(UserPrincipalName)\n              by AppId, AppDisplayName;\nunion\n    (SigninLogs | project TimeGenerated, AppId, UserPrincipalName, ResultType),\n    (AADNonInteractiveUserSignInLogs | project TimeGenerated, AppId, UserPrincipalName, ResultType)\n| where TimeGenerated > ago(window)\n| where ResultType == \"0\"\n| join kind=inner missingConsent on AppId\n| where TimeGenerated > FirstMissing\n| summarize FirstSuccessAfter = min(TimeGenerated), SuccessUsers = dcount(UserPrincipalName)\n          by AppId, AppDisplayName, FirstMissing, MissingUsers\n| sort by FirstSuccessAfter desc\n```\n\nThen find the consent itself. Microsoft's guidance is to search the **Microsoft Purview (unified) audit log** for the activity **\"Consent to application\"** and check `IsAdminConsent`. The Entra audit log records the same operation; in Log Analytics that is the `AuditLogs` table:\n\n```kusto\nAuditLogs\n| where TimeGenerated > ago(30d)\n| where OperationName == \"Consent to application\"\n| extend Actor = tostring(InitiatedBy.user.userPrincipalName),\n         AppName = tostring(TargetResources[0].displayName),\n         AppObjectId = tostring(TargetResources[0].id),\n         ConsentDetails = TargetResources[0].modifiedProperties\n| project TimeGenerated, Actor, AppName, AppObjectId, Result, ConsentDetails\n| sort by TimeGenerated desc\n```\n\n`ConsentDetails` holds the modified properties of the grant, which is where the admin-consent flag and the granted permissions appear. In the Entra audit log those are the properties named `ConsentContext.IsAdminConsent` and `ConsentAction.Permissions`, not a top-level `IsAdminConsent` field as in Purview. The exact field paths inside `InitiatedBy` and `TargetResources` vary; check them against a real event in your workspace before you build an alert on them.\n\n`ResultType` is a **string** column, so compare it with `\"65001\"`, not `65001`.",
  "fix": {
    "short": "Developer: grant consent for the permissions the app requests (admin consent where needed), then retry the sign-in. Admin: for an app ID you don't recognise, find out who published it and what it asks for before anyone consents. Restrict user consent and enable the admin consent workflow.",
    "steps": "**For developers:** grant consent for the permissions the app requests (admin consent for permissions that need it), then retry the sign-in.\n\n**For admins:**\n1. For an app ID you don't recognise, find out who published it and what it asks for **before** anyone consents.\n2. If an unknown app flipped from 65001 to success, find the \"Consent to application\" event, check whether it was admin consent, and review what the app accessed.\n3. Remove consent from and disable any app you confirm as malicious. Resetting the user's password alone does not cut off its access.\n4. Restrict user consent and enable the admin consent workflow as your standing posture."
  },
  "labReproduced": {
    "date": "2026-10-25",
    "method": "ROPC token request against a lab tenant",
    "scenario": "Correct password (security defaults / MFA / consent decide)",
    "message": "AADSTS65001: The user or administrator has not consented to use the application with ID '{app-id}' named 'lab-signin-client'.",
    "logCaptured": "2026-10-30",
    "kqlTested": null
  },
  "labSectionText": "On 25 October 2026 an automated lab run sent a token request with the **correct** password for a test user, to a lab app nobody had consented to. The password was right, so the request got past the credential check and stopped at the missing consent. Instead of a token or an MFA prompt, Entra returned `AADSTS65001` with this first line:\n\n> AADSTS65001: The user or administrator has not consented to use the application with ID '{app-id}' named 'lab-signin-client'.\n\nThat confirms the code and its wording at the token endpoint.\n\nThe same attempt in the lab tenant's sign-in log (Entra admin center, interactive user sign-ins), with identifiers left out:\n\n| Field | Value in the lab row |\n|---|---|\n| Status | Interrupted |\n| Sign-in error code | 65001 |\n| Application | lab-signin-client |\n| Authentication requirement | Single-factor authentication |\n| Conditional Access | Not Applied |\n| User type | Member |\n\nThe row is logged as **Interrupted**, not Failure: the password was right and the sign-in waits for consent. A portal view filtered on Status = Failure misses it; filter on the error code instead. The KQL below was run on the lab rows ([how](https://brambrinkmeier.com/methodology/)). Not tested yet: the first query needs a successful sign-in after the consent error and the second needs a consent event in `AuditLogs`, and the exported lab rows have neither.",
  "labRuns": [
    {
      "date": "2026-10-25",
      "run": null,
      "method": "ROPC token request against a lab tenant",
      "issue": "https://github.com/GrantZero604/Brambrinkmeier.com/issues/38",
      "scenario": "Correct password (security defaults / MFA / consent decide)",
      "expected": "success / 50076 / 50079 / 65001 / 50072",
      "got": "65001",
      "matchedExpectation": true,
      "message": "AADSTS65001: The user or administrator has not consented to use the application with ID '{app-id}' named 'lab-signin-client'. Send a"
    },
    {
      "date": "2026-10-30",
      "run": "round 4",
      "method": "token-endpoint requests against a lab tenant",
      "issue": "https://github.com/GrantZero604/Brambrinkmeier.com/issues/67",
      "scenario": "Correct password (security defaults / MFA / consent decide)",
      "expected": "success / 50076 / 50079 / 65001 / 50072",
      "got": "65001",
      "matchedExpectation": true,
      "message": "AADSTS65001: The user or administrator has not consented to use the application with ID '{app-id}' named 'lab-signin-client'. Send a"
    },
    {
      "date": "2026-10-30",
      "run": "round 4",
      "method": "token-endpoint requests against a lab tenant",
      "issue": "https://github.com/GrantZero604/Brambrinkmeier.com/issues/67",
      "scenario": "Deleted user signs in",
      "expected": "500341 / 50034",
      "got": "65001",
      "matchedExpectation": false,
      "message": "AADSTS65001: The user or administrator has not consented to use the application with ID '{app-id}' named 'lab-signin-client'. Send a"
    },
    {
      "date": "2026-10-30",
      "run": "round 5",
      "method": "token-endpoint requests against a lab tenant, using lab-created test apps",
      "issue": "https://github.com/GrantZero604/Brambrinkmeier.com/issues/69",
      "scenario": "Correct password (security defaults / MFA / consent decide)",
      "expected": "success / 50076 / 50079 / 65001 / 50072",
      "got": "success",
      "matchedExpectation": true,
      "message": ""
    },
    {
      "date": "2026-10-30",
      "run": "round 5",
      "method": "token-endpoint requests against a lab tenant, using lab-created test apps",
      "issue": "https://github.com/GrantZero604/Brambrinkmeier.com/issues/69",
      "scenario": "SPA-registered client redeems without an Origin header",
      "expected": "9002327",
      "got": "65001",
      "matchedExpectation": false,
      "message": "AADSTS65001: The user or administrator has not consented to use the application with ID '{app-id}' named 'lab-spa-41136574530'. Send"
    },
    {
      "date": "2026-10-30",
      "run": "round 5 (first attempt)",
      "method": "token-endpoint requests against a lab tenant",
      "issue": "https://github.com/GrantZero604/Brambrinkmeier.com/issues/68",
      "scenario": "Correct password (security defaults / MFA / consent decide)",
      "expected": "success / 50076 / 50079 / 65001 / 50072",
      "got": "success",
      "matchedExpectation": true,
      "message": ""
    },
    {
      "date": "2026-10-30",
      "run": "round 6",
      "method": "token-endpoint requests against a lab tenant, using lab-created test apps",
      "issue": "https://github.com/GrantZero604/Brambrinkmeier.com/issues/70",
      "scenario": "Correct password (security defaults / MFA / consent decide)",
      "expected": "success / 50076 / 50079 / 65001 / 50072",
      "got": "success",
      "matchedExpectation": true,
      "message": ""
    },
    {
      "date": "2026-10-30",
      "run": "round 6",
      "method": "token-endpoint requests against a lab tenant, using lab-created test apps",
      "issue": "https://github.com/GrantZero604/Brambrinkmeier.com/issues/70",
      "scenario": "SPA-registered client redeems without an Origin header",
      "expected": "9002327 / 65001",
      "got": "65001",
      "matchedExpectation": true,
      "message": "AADSTS65001: The user or administrator has not consented to use the application with ID '{app-id}' named 'lab-spa-41139925607'. Send"
    },
    {
      "date": "2026-10-30",
      "run": "round 7",
      "method": "token-endpoint requests against a lab tenant",
      "issue": "https://github.com/GrantZero604/Brambrinkmeier.com/issues/71",
      "scenario": "Correct password (security defaults / MFA / consent decide)",
      "expected": "success / 50076 / 50079 / 65001 / 50072",
      "got": "success",
      "matchedExpectation": true,
      "message": ""
    },
    {
      "date": "2026-10-30",
      "run": "round 7",
      "method": "token-endpoint requests against a lab tenant",
      "issue": "https://github.com/GrantZero604/Brambrinkmeier.com/issues/71",
      "scenario": "SPA-registered client redeems without an Origin header",
      "expected": "9002327 / 65001",
      "got": "65001",
      "matchedExpectation": true,
      "message": "AADSTS65001: The user or administrator has not consented to use the application with ID '{app-id}' named 'lab-spa-41143330001'. Send"
    },
    {
      "date": "2026-10-30",
      "run": null,
      "method": "ROPC and other token-endpoint requests against a lab tenant",
      "issue": "https://github.com/GrantZero604/Brambrinkmeier.com/issues/66",
      "scenario": "Correct password (security defaults / MFA / consent decide)",
      "expected": "success / 50076 / 50079 / 65001 / 50072",
      "got": "65001",
      "matchedExpectation": true,
      "message": "AADSTS65001: The user or administrator has not consented to use the application with ID '{app-id}' named 'lab-signin-client'. Send a"
    },
    {
      "date": "2026-10-30",
      "run": null,
      "method": "ROPC and other token-endpoint requests against a lab tenant",
      "issue": "https://github.com/GrantZero604/Brambrinkmeier.com/issues/66",
      "scenario": "Deleted user signs in",
      "expected": "500341 / 50034",
      "got": "65001",
      "matchedExpectation": false,
      "message": "AADSTS65001: The user or administrator has not consented to use the application with ID '{app-id}' named 'lab-signin-client'. Send a"
    },
    {
      "date": "2026-10-31",
      "run": "round 8",
      "method": "token-endpoint and device-code requests against a lab tenant",
      "issue": "https://github.com/GrantZero604/Brambrinkmeier.com/issues/72",
      "scenario": "Correct password (security defaults / MFA / consent decide)",
      "expected": "success / 50076 / 50079 / 65001 / 50072",
      "got": "success",
      "matchedExpectation": true,
      "message": ""
    },
    {
      "date": "2026-10-31",
      "run": "round 8",
      "method": "token-endpoint and device-code requests against a lab tenant",
      "issue": "https://github.com/GrantZero604/Brambrinkmeier.com/issues/72",
      "scenario": "SPA-registered client redeems without an Origin header",
      "expected": "9002327 / 65001",
      "got": "65001",
      "matchedExpectation": true,
      "message": "AADSTS65001: The user or administrator has not consented to use the application with ID '{app-id}' named 'lab-spa-41146039117'. Send"
    },
    {
      "date": "2026-10-31",
      "run": "round 9",
      "method": "token-endpoint and device-code requests against a lab tenant",
      "issue": "https://github.com/GrantZero604/Brambrinkmeier.com/issues/73",
      "scenario": "Correct password (security defaults / MFA / consent decide)",
      "expected": "success / 50076 / 50079 / 65001 / 50072",
      "got": "success",
      "matchedExpectation": true,
      "message": ""
    },
    {
      "date": "2026-10-31",
      "run": "round 9",
      "method": "token-endpoint and device-code requests against a lab tenant",
      "issue": "https://github.com/GrantZero604/Brambrinkmeier.com/issues/73",
      "scenario": "SPA-registered client redeems without an Origin header",
      "expected": "9002327 / 65001",
      "got": "65001",
      "matchedExpectation": true,
      "message": "AADSTS65001: The user or administrator has not consented to use the application with ID '{app-id}' named 'lab-spa-41150019626'. Send"
    }
  ],
  "verification": "lab-reproduced",
  "related": [
    "90094",
    "90095",
    "65004",
    "700016",
    "500011",
    "50011",
    "50013",
    "50105",
    "65002",
    "65005",
    "90009",
    "500341",
    "501051",
    "650052",
    "650056",
    "1003031",
    "7000112",
    "7000215",
    "9002341"
  ],
  "coveredBy": [
    {
      "title": "How to investigate consent phishing (illicit consent grants) in Entra ID",
      "url": "https://brambrinkmeier.com/guides/investigate-consent-phishing-entra-id/"
    }
  ],
  "sources": [
    {
      "title": "Microsoft Entra authentication and authorization error codes",
      "url": "https://learn.microsoft.com/en-us/entra/identity-platform/reference-error-codes"
    },
    {
      "title": "Detect and remediate illicit consent grants",
      "url": "https://learn.microsoft.com/en-us/defender-office-365/detect-and-remediate-illicit-consent-grants"
    },
    {
      "title": "SigninLogs table reference (Azure Monitor)",
      "url": "https://learn.microsoft.com/en-us/azure/azure-monitor/reference/tables/signinlogs"
    }
  ],
  "published": null,
  "lastUpdated": "2026-10-30",
  "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, \"AADSTS65001: User or admin has not consented to the app\", https://brambrinkmeier.com/entra/aadsts/65001/ (CC BY 4.0)",
  "microsoftErrorLookup": "https://login.microsoftonline.com/error?code=65001"
}
