# Azure AD (Entra ID): AADSTS700016 Application not found in the directory

**Code:** `AADSTS700016` · **Category:** Azure · **Seen on:** Azure

The client ID in your sign-in request doesn’t exist in the tenant you’re authenticating against.

## Meaning

Either the app ID is wrong, the app is registered in a different tenant, or a multi-tenant app hasn’t been consented in the user’s tenant.

## Common causes

- Wrong client/application ID
- Using a tenant-specific authority for a different tenant
- Single-tenant app used by external users
- App registration deleted

## Quick fix

1. Verify the Application (client) ID in Entra ID → App registrations
2. Use the right authority (`/common`, `/organizations` or the tenant ID)
3. Make the app multi-tenant if external users sign in

## Detailed fix by platform

### Azure

1. Other common codes: AADSTS50011 (redirect URI mismatch), AADSTS65001 (consent required), AADSTS7000215 (invalid client secret).

## How to diagnose

1. **Client ID** — Matches the registration?
2. **Tenant** — Authority correct?

---
Source: [WhatIsMyError](https://whatismyerror.com/errors/azure/aadsts700016-application-not-found)
