# Entra AADSTS700016: application not found in the directory

Entra could not find an application with the identifier in the request in this tenant. Usually the app was created in a different tenant, or its identifier differs from what OhAuthCat sends.

## What to change

- **IT admin (SAML):** set the enterprise application's _Identifier (Entity ID)_ to the exact SP entity ID from the setup portal.
- **IT admin (OIDC):** check that the client ID entered in the portal belongs to an app registration in the same tenant as the users signing in.
- **Developer:** if the customer has several Entra tenants, confirm the connection points at the tenant their users belong to.

## Related OhAuthCat error

- [`saml_audience_mismatch`](/errors/saml_audience_mismatch/)

## Source

Written in our own words from the public Microsoft Entra ID documentation: [https://learn.microsoft.com/en-us/entra/identity-platform/reference-error-codes](https://learn.microsoft.com/en-us/entra/identity-platform/reference-error-codes). Check it for the vendor's current wording; vendors change their pages without notice.
