{
  "schemaVersion": "1.0",
  "code": "700016",
  "name": "UnauthorizedClient_DoesNotMatchRequest",
  "title": "AADSTS700016: Application not found in the directory",
  "url": "https://brambrinkmeier.com/entra/aadsts/700016/",
  "alternates": {
    "markdown": "https://brambrinkmeier.com/entra/aadsts/700016.md",
    "json": "https://brambrinkmeier.com/api/aadsts/700016.json",
    "html": "https://brambrinkmeier.com/entra/aadsts/700016/"
  },
  "description": "AADSTS700016: the client app ID isn't found in the tenant. Usually a developer error; unknown or deleted malicious app IDs need a look. With KQL.",
  "summary": "AADSTS700016 means the client application ID in the request isn't found in the tenant the request was sent to. It is almost always a developer error: wrong client ID, wrong tenant, or an app never added to the tenant. Unknown client IDs or a deleted malicious app still trying to sign in are worth a look.",
  "inMicrosoftReference": true,
  "unlistedChecked": null,
  "meaningText": "Microsoft's description:\n\n> **UnauthorizedClient_DoesNotMatchRequest**: The application wasn't found in the directory/tenant. This can happen if the application has not been installed by the administrator of the tenant or consented to by any user in the tenant. You might have misconfigured the identifier value for the application or sent your authentication request to the wrong tenant.\n\nThe application that is missing is the **client** (the app asking for a token). If the missing object is the API being called, the error is [500011](https://brambrinkmeier.com/entra/aadsts/500011/) instead.",
  "sections": [
    {
      "heading": "What does AADSTS700016 mean?",
      "text": "Microsoft's description:\n\n> **UnauthorizedClient_DoesNotMatchRequest**: The application wasn't found in the directory/tenant. This can happen if the application has not been installed by the administrator of the tenant or consented to by any user in the tenant. You might have misconfigured the identifier value for the application or sent your authentication request to the wrong tenant.\n\nThe application that is missing is the **client** (the app asking for a token). If the missing object is the API being called, the error is [500011](https://brambrinkmeier.com/entra/aadsts/500011/) instead."
    },
    {
      "heading": "Reproduced in the lab",
      "text": "On 25 October 2026 an automated lab run sent a token request with a client ID that isn't registered anywhere. Entra returned `AADSTS700016` with this first line:\n\n> AADSTS700016: Application with identifier '{app-id}' was not found in the directory '{tenant-id}'.\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 | Failure |\n| Sign-in error code | 700016 |\n| Failure reason | Application with identifier '{appIdentifier}' was not found in the directory '{tenantName}'. This can happen if the application has not been installed by the administrator of the tenant or consented to by any user in the tenant. |\n| Application | (empty) |\n| Application ID | the unknown client ID from the request |\n| App owner tenant ID | (empty) |\n| Resource | Microsoft Graph |\n| Conditional Access | Not Applied |\n| User type | Member |\n\nThe **Application** name is empty and there is no app owner tenant, only the unknown client ID. In `SigninLogs` that should appear as an empty `AppDisplayName` with an `AppId` that matches nothing in your tenant, which is a clean way to find these rows. The KQL below was run on the lab rows ([how](https://brambrinkmeier.com/methodology/)). The first query found both lab rows, one per unknown client ID. The second query, with the placeholder replaced by one of those IDs, found its row."
    },
    {
      "heading": "Is it an attack?",
      "text": "Almost always not. Typical causes:\n\n- A typo or copy-paste error in the client ID.\n- The request goes to the wrong tenant (wrong tenant ID or domain in the authority URL).\n- A single-tenant app used from another tenant.\n- A multi-tenant app that nobody in your tenant has consented to yet.\n- An app registration that was deleted while a script or service still uses it.\n\n| Pattern | Likely meaning |\n|---|---|\n| One internal app ID, failing since a deployment | Wrong client ID or tenant in config. Benign. |\n| An app you deleted recently, still failing | Something still uses it. Find and update the caller. |\n| An app you **removed during an incident** (for example after an illicit consent grant), still failing | **The attacker's tooling is still trying.** Note the IPs and times. |\n| Client IDs you don't recognise, from external IPs, across your tenant | Someone checking whether their app exists in your tenant. Investigate. |\n\nThe last two rows are **our reasoning**, not Microsoft statements. Microsoft's illicit-consent guidance describes removing a malicious app's access; it doesn't describe the 700016 rows that follow. If you remove the service principal, a client that still uses that app ID against your tenant would match the description above. Two neighbouring codes may show instead: **700011** (*\"Application with identifier {appIdentifier} was not found in the directory\"*) for a removed app, and **7000112** (*\"The application is disabled\"*) while the service principal is disabled. Which one a removed app returns isn't documented; the [consent phishing guide](https://brambrinkmeier.com/guides/investigate-consent-phishing-entra-id/) treats all three as the aftermath to watch for."
    },
    {
      "heading": "How do I find it in my logs (KQL)?",
      "text": "700016 grouped by the client app ID, so you can check each one against your app registrations:\n\n```kusto\nSigninLogs\n| where TimeGenerated > ago(14d)\n| where ResultType == \"700016\"\n| summarize Attempts = count(),\n            Users = dcount(UserPrincipalName),\n            IPs = make_set(IPAddress, 10),\n            AppNames = make_set(AppDisplayName, 5),\n            FirstSeen = min(TimeGenerated), LastSeen = max(TimeGenerated)\n          by AppId\n| sort by Attempts desc\n```\n\n`AppDisplayName` may be empty on these rows, since the tenant has no object for the app. Look up the `AppId` yourself.\n\nAfter an incident: has a removed app ID tried again?\n\n```kusto\nlet removedApp = \"<app-id-you-removed>\";\nunion\n    (SigninLogs | where AppId == removedApp),\n    (AADServicePrincipalSignInLogs | where AppId == removedApp)\n| where TimeGenerated > ago(30d)\n| project TimeGenerated, Type, ResultType, ResultDescription, IPAddress, UserPrincipalName,\n          ServicePrincipalName\n| sort by TimeGenerated desc\n```\n\nThe empty `AppDisplayName` is confirmed in the lab's user sign-in rows. Whether 700016 also shows up in `AADServicePrincipalSignInLogs` is not verified. Microsoft's table reference for the service principal table describes `ResultType` as Success or Failure, so check whether the numeric code appears there before you build a rule on it."
    },
    {
      "heading": "How does Conditional Access affect it?",
      "text": "- 700016 is not a Conditional Access result. There is no application object in the tenant for a policy to target.\n- Once the app is added or consented, your policies apply as normal. Conditional Access targets the **resource** being requested, not the client application, so a policy on \"All resources\" or on the specific API covers the tokens this client asks for.\n- The control that matters here is consent. Microsoft's illicit-consent guidance notes that resetting passwords or requiring MFA isn't effective against an app that already holds consent. Removing the app's grants and service principal is what ends that access, and 700016 can be what the attacker's tool sees afterwards."
    },
    {
      "heading": "How do I fix AADSTS700016?",
      "text": "**For developers:**\n1. Compare the client ID in your code or config with the **Application (client) ID** on the app registration.\n2. Check the authority URL. The tenant in it must be the tenant where the app is registered, or the app must be multi-tenant and consented in the target tenant.\n3. If the app was deleted, restore it or register a new one and update every caller.\n\n**For admins:**\n1. Check each unknown `AppId` from the first query. If it is a third-party app nobody asked for, leave it out of the tenant.\n2. If the app ID belongs to something you removed during an incident, keep the evidence (IPs, times, user agents) and don't re-add the app."
    }
  ],
  "microsoftWording": {
    "text": "**UnauthorizedClient_DoesNotMatchRequest**: The application wasn't found in the directory/tenant. This can happen if the application has not been installed by the administrator of the tenant or consented to by any user in the tenant. You might have misconfigured the identifier value for the application or sent your authentication request to the wrong tenant.",
    "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": [],
    "tables": [
      "SigninLogs",
      "AADServicePrincipalSignInLogs"
    ],
    "isItAnAttack": "Almost always not. Typical causes:\n\n- A typo or copy-paste error in the client ID.\n- The request goes to the wrong tenant (wrong tenant ID or domain in the authority URL).\n- A single-tenant app used from another tenant.\n- A multi-tenant app that nobody in your tenant has consented to yet.\n- An app registration that was deleted while a script or service still uses it.\n\n| Pattern | Likely meaning |\n|---|---|\n| One internal app ID, failing since a deployment | Wrong client ID or tenant in config. Benign. |\n| An app you deleted recently, still failing | Something still uses it. Find and update the caller. |\n| An app you **removed during an incident** (for example after an illicit consent grant), still failing | **The attacker's tooling is still trying.** Note the IPs and times. |\n| Client IDs you don't recognise, from external IPs, across your tenant | Someone checking whether their app exists in your tenant. Investigate. |\n\nThe last two rows are **our reasoning**, not Microsoft statements. Microsoft's illicit-consent guidance describes removing a malicious app's access; it doesn't describe the 700016 rows that follow. If you remove the service principal, a client that still uses that app ID against your tenant would match the description above. Two neighbouring codes may show instead: **700011** (*\"Application with identifier {appIdentifier} was not found in the directory\"*) for a removed app, and **7000112** (*\"The application is disabled\"*) while the service principal is disabled. Which one a removed app returns isn't documented; the [consent phishing guide](https://brambrinkmeier.com/guides/investigate-consent-phishing-entra-id/) treats all three as the aftermath to watch for.",
    "conditionalAccess": {
      "heading": "How does Conditional Access affect it?",
      "text": "- 700016 is not a Conditional Access result. There is no application object in the tenant for a policy to target.\n- Once the app is added or consented, your policies apply as normal. Conditional Access targets the **resource** being requested, not the client application, so a policy on \"All resources\" or on the specific API covers the tokens this client asks for.\n- The control that matters here is consent. Microsoft's illicit-consent guidance notes that resetting passwords or requiring MFA isn't effective against an app that already holds consent. Removing the app's grants and service principal is what ends that access, and 700016 can be what the attacker's tool sees afterwards."
    }
  },
  "kql": [
    {
      "title": null,
      "leadIn": "700016 grouped by the client app ID, so you can check each one against your app registrations:",
      "query": "SigninLogs\n| where TimeGenerated > ago(14d)\n| where ResultType == \"700016\"\n| summarize Attempts = count(),\n            Users = dcount(UserPrincipalName),\n            IPs = make_set(IPAddress, 10),\n            AppNames = make_set(AppDisplayName, 5),\n            FirstSeen = min(TimeGenerated), LastSeen = max(TimeGenerated)\n          by AppId\n| sort by Attempts desc"
    },
    {
      "title": null,
      "leadIn": "After an incident: has a removed app ID tried again?",
      "query": "let removedApp = \"<app-id-you-removed>\";\nunion\n    (SigninLogs | where AppId == removedApp),\n    (AADServicePrincipalSignInLogs | where AppId == removedApp)\n| where TimeGenerated > ago(30d)\n| project TimeGenerated, Type, ResultType, ResultDescription, IPAddress, UserPrincipalName,\n          ServicePrincipalName\n| sort by TimeGenerated desc"
    }
  ],
  "kqlSectionText": "700016 grouped by the client app ID, so you can check each one against your app registrations:\n\n```kusto\nSigninLogs\n| where TimeGenerated > ago(14d)\n| where ResultType == \"700016\"\n| summarize Attempts = count(),\n            Users = dcount(UserPrincipalName),\n            IPs = make_set(IPAddress, 10),\n            AppNames = make_set(AppDisplayName, 5),\n            FirstSeen = min(TimeGenerated), LastSeen = max(TimeGenerated)\n          by AppId\n| sort by Attempts desc\n```\n\n`AppDisplayName` may be empty on these rows, since the tenant has no object for the app. Look up the `AppId` yourself.\n\nAfter an incident: has a removed app ID tried again?\n\n```kusto\nlet removedApp = \"<app-id-you-removed>\";\nunion\n    (SigninLogs | where AppId == removedApp),\n    (AADServicePrincipalSignInLogs | where AppId == removedApp)\n| where TimeGenerated > ago(30d)\n| project TimeGenerated, Type, ResultType, ResultDescription, IPAddress, UserPrincipalName,\n          ServicePrincipalName\n| sort by TimeGenerated desc\n```\n\nThe empty `AppDisplayName` is confirmed in the lab's user sign-in rows. Whether 700016 also shows up in `AADServicePrincipalSignInLogs` is not verified. Microsoft's table reference for the service principal table describes `ResultType` as Success or Failure, so check whether the numeric code appears there before you build a rule on it.",
  "fix": {
    "short": "Developer: compare the client ID in your config with the app registration's Application (client) ID, and check that the authority URL names the tenant where the app is registered (or that a multi-tenant app is consented there). If the app was deleted, restore it or register a new one.",
    "steps": "**For developers:**\n1. Compare the client ID in your code or config with the **Application (client) ID** on the app registration.\n2. Check the authority URL. The tenant in it must be the tenant where the app is registered, or the app must be multi-tenant and consented in the target tenant.\n3. If the app was deleted, restore it or register a new one and update every caller.\n\n**For admins:**\n1. Check each unknown `AppId` from the first query. If it is a third-party app nobody asked for, leave it out of the tenant.\n2. If the app ID belongs to something you removed during an incident, keep the evidence (IPs, times, user agents) and don't re-add the app."
  },
  "labReproduced": {
    "date": "2026-10-25",
    "method": "ROPC token request against a lab tenant",
    "scenario": "Unknown client ID",
    "message": "AADSTS700016: Application with identifier '{app-id}' was not found in the directory '{tenant-id}'.",
    "logCaptured": "2026-10-30",
    "kqlTested": "2026-10-30"
  },
  "labSectionText": "On 25 October 2026 an automated lab run sent a token request with a client ID that isn't registered anywhere. Entra returned `AADSTS700016` with this first line:\n\n> AADSTS700016: Application with identifier '{app-id}' was not found in the directory '{tenant-id}'.\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 | Failure |\n| Sign-in error code | 700016 |\n| Failure reason | Application with identifier '{appIdentifier}' was not found in the directory '{tenantName}'. This can happen if the application has not been installed by the administrator of the tenant or consented to by any user in the tenant. |\n| Application | (empty) |\n| Application ID | the unknown client ID from the request |\n| App owner tenant ID | (empty) |\n| Resource | Microsoft Graph |\n| Conditional Access | Not Applied |\n| User type | Member |\n\nThe **Application** name is empty and there is no app owner tenant, only the unknown client ID. In `SigninLogs` that should appear as an empty `AppDisplayName` with an `AppId` that matches nothing in your tenant, which is a clean way to find these rows. The KQL below was run on the lab rows ([how](https://brambrinkmeier.com/methodology/)). The first query found both lab rows, one per unknown client ID. The second query, with the placeholder replaced by one of those IDs, found its row.",
  "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": "Unknown client ID",
      "expected": "700016",
      "got": "700016",
      "matchedExpectation": true,
      "message": "AADSTS700016: Application with identifier '{app-id}' was not found in the directory '{tenant-id}'. This can"
    },
    {
      "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": "Unknown client ID",
      "expected": "700016",
      "got": "700016",
      "matchedExpectation": true,
      "message": "AADSTS700016: Application with identifier '{app-id}' was not found in the directory '{tenant-id}'. This can"
    },
    {
      "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": "Device code requested on /consumers by a work-account app",
      "expected": "90133 / 9002331 / 700016",
      "got": "700016",
      "matchedExpectation": true,
      "message": "AADSTS700016: Application with identifier '{app-id}' was not found in the directory '{tenant-id}'. This can"
    },
    {
      "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": "Device code on /common by a single-tenant app",
      "expected": "90133 / 700016 / 50194",
      "got": "50059",
      "matchedExpectation": false,
      "message": "AADSTS50059: No tenant-identifying information found in either the request or implied by any provided credentials."
    },
    {
      "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": "Device code on /organizations by a single-tenant app",
      "expected": "90133 / 700016 / 50194",
      "got": "50059",
      "matchedExpectation": false,
      "message": "AADSTS50059: No tenant-identifying information found in either the request or implied by any provided credentials."
    },
    {
      "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": "Unknown client ID",
      "expected": "700016",
      "got": "700016",
      "matchedExpectation": true,
      "message": "AADSTS700016: Application with identifier '{app-id}' was not found in the directory '{tenant-id}'. This can"
    },
    {
      "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": "Device code requested on /consumers by a work-account app",
      "expected": "90133 / 9002331 / 700016",
      "got": "700016",
      "matchedExpectation": true,
      "message": "AADSTS700016: Application with identifier '{app-id}' was not found in the directory '{tenant-id}'. This can"
    },
    {
      "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": "Device code on /common by a single-tenant app",
      "expected": "90133 / 700016 / 50194",
      "got": "50059",
      "matchedExpectation": false,
      "message": "AADSTS50059: No tenant-identifying information found in either the request or implied by any provided credentials."
    },
    {
      "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": "Device code on /organizations by a single-tenant app",
      "expected": "90133 / 700016 / 50194",
      "got": "50059",
      "matchedExpectation": false,
      "message": "AADSTS50059: No tenant-identifying information found in either the request or implied by any provided credentials."
    },
    {
      "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": "Unknown client ID",
      "expected": "700016",
      "got": "700016",
      "matchedExpectation": true,
      "message": "AADSTS700016: Application with identifier '{app-id}' was not found in the directory '{tenant-id}'. This can"
    },
    {
      "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": "Device code requested on /consumers by a work-account app",
      "expected": "90133 / 9002331 / 700016",
      "got": "700016",
      "matchedExpectation": true,
      "message": "AADSTS700016: Application with identifier '{app-id}' was not found in the directory '{tenant-id}'. This can"
    },
    {
      "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": "Device code on /common by a single-tenant app",
      "expected": "90133 / 700016 / 50194",
      "got": "50059",
      "matchedExpectation": false,
      "message": "AADSTS50059: No tenant-identifying information found in either the request or implied by any provided credentials."
    },
    {
      "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": "Device code on /organizations by a single-tenant app",
      "expected": "90133 / 700016 / 50194",
      "got": "50059",
      "matchedExpectation": false,
      "message": "AADSTS50059: No tenant-identifying information found in either the request or implied by any provided credentials."
    },
    {
      "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": "Unknown client ID",
      "expected": "700016",
      "got": "700016",
      "matchedExpectation": true,
      "message": "AADSTS700016: Application with identifier '{app-id}' was not found in the directory '{tenant-id}'. This can"
    },
    {
      "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": "Device code requested on /consumers by a work-account app",
      "expected": "90133 / 9002331 / 700016",
      "got": "700016",
      "matchedExpectation": true,
      "message": "AADSTS700016: Application with identifier '{app-id}' was not found in the directory '{tenant-id}'. This can"
    },
    {
      "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": "Device code on /common by a single-tenant app",
      "expected": "90133 / 700016 / 50194",
      "got": "50059",
      "matchedExpectation": false,
      "message": "AADSTS50059: No tenant-identifying information found in either the request or implied by any provided credentials."
    },
    {
      "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": "Device code on /organizations by a single-tenant app",
      "expected": "90133 / 700016 / 50194",
      "got": "50059",
      "matchedExpectation": false,
      "message": "AADSTS50059: No tenant-identifying information found in either the request or implied by any provided credentials."
    },
    {
      "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": "Unknown client ID",
      "expected": "700016",
      "got": "700016",
      "matchedExpectation": true,
      "message": "AADSTS700016: Application with identifier '{app-id}' was not found in the directory '{tenant-id}'. This can"
    },
    {
      "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": "Device code requested on /consumers by a work-account app",
      "expected": "90133 / 9002331 / 700016",
      "got": "700016",
      "matchedExpectation": true,
      "message": "AADSTS700016: Application with identifier '{app-id}' was not found in the directory '{tenant-id}'. This can"
    },
    {
      "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": "Device code on /common by a single-tenant app",
      "expected": "90133 / 700016 / 50194",
      "got": "50059",
      "matchedExpectation": false,
      "message": "AADSTS50059: No tenant-identifying information found in either the request or implied by any provided credentials."
    },
    {
      "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": "Device code on /organizations by a single-tenant app",
      "expected": "90133 / 700016 / 50194",
      "got": "50059",
      "matchedExpectation": false,
      "message": "AADSTS50059: No tenant-identifying information found in either the request or implied by any provided credentials."
    },
    {
      "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": "Unknown client ID",
      "expected": "700016",
      "got": "700016",
      "matchedExpectation": true,
      "message": "AADSTS700016: Application with identifier '{app-id}' was not found in the directory '{tenant-id}'. This can"
    },
    {
      "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": "Device code requested on /consumers by a work-account app",
      "expected": "90133 / 9002331 / 700016",
      "got": "700016",
      "matchedExpectation": true,
      "message": "AADSTS700016: Application with identifier '{app-id}' was not found in the directory '{tenant-id}'. This can"
    },
    {
      "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": "Unknown client ID",
      "expected": "700016",
      "got": "700016",
      "matchedExpectation": true,
      "message": "AADSTS700016: Application with identifier '{app-id}' was not found in the directory '{tenant-id}'. This can"
    },
    {
      "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": "Device code requested on /consumers by a work-account app",
      "expected": "90133 / 9002331 / 700016",
      "got": "700016",
      "matchedExpectation": true,
      "message": "AADSTS700016: Application with identifier '{app-id}' was not found in the directory '{tenant-id}'. This can"
    },
    {
      "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": "Device code on /common by a single-tenant app",
      "expected": "90133 / 700016 / 50194",
      "got": "50059",
      "matchedExpectation": false,
      "message": "AADSTS50059: No tenant-identifying information found in either the request or implied by any provided credentials."
    },
    {
      "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": "Device code on /organizations by a single-tenant app",
      "expected": "90133 / 700016 / 50194",
      "got": "50059",
      "matchedExpectation": false,
      "message": "AADSTS50059: No tenant-identifying information found in either the request or implied by any provided credentials."
    },
    {
      "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": "Unknown client ID",
      "expected": "700016",
      "got": "700016",
      "matchedExpectation": true,
      "message": "AADSTS700016: Application with identifier '{app-id}' was not found in the directory '{tenant-id}'. This can"
    },
    {
      "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": "Device code requested on /consumers by a work-account app",
      "expected": "90133 / 9002331 / 700016",
      "got": "700016",
      "matchedExpectation": true,
      "message": "AADSTS700016: Application with identifier '{app-id}' was not found in the directory '{tenant-id}'. This can"
    },
    {
      "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": "Device code on /common by a single-tenant app",
      "expected": "90133 / 700016 / 50194",
      "got": "50059",
      "matchedExpectation": false,
      "message": "AADSTS50059: No tenant-identifying information found in either the request or implied by any provided credentials."
    },
    {
      "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": "Device code on /organizations by a single-tenant app",
      "expected": "90133 / 700016 / 50194",
      "got": "50059",
      "matchedExpectation": false,
      "message": "AADSTS50059: No tenant-identifying information found in either the request or implied by any provided credentials."
    }
  ],
  "verification": "lab-reproduced",
  "related": [
    "50011",
    "65001",
    "50020",
    "7000215",
    "500011",
    "50001",
    "50059",
    "50105",
    "50194",
    "51004",
    "65002",
    "65005",
    "70002",
    "70021",
    "70025",
    "90002",
    "90009",
    "90019",
    "90094",
    "90095",
    "90133",
    "500014",
    "500031",
    "500113",
    "500200",
    "501051",
    "650052",
    "650056",
    "700024",
    "700051",
    "700054",
    "900023",
    "900144",
    "900439",
    "1002016",
    "1003031",
    "5000225",
    "5002730",
    "7000014",
    "7000110",
    "7000112",
    "7000216",
    "7000218",
    "7000222",
    "9002313",
    "9002326",
    "9002331",
    "9002346",
    "9010010"
  ],
  "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"
    },
    {
      "title": "AADServicePrincipalSignInLogs table reference (Azure Monitor)",
      "url": "https://learn.microsoft.com/en-us/azure/azure-monitor/reference/tables/aadserviceprincipalsigninlogs"
    }
  ],
  "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, \"AADSTS700016: Application not found in the directory\", https://brambrinkmeier.com/entra/aadsts/700016/ (CC BY 4.0)",
  "microsoftErrorLookup": "https://login.microsoftonline.com/error?code=700016"
}
