# AZ707: Not in the policy

An `authz.*` function was called with a name the policy in force doesn't have: a type, a permission, a scope, a caveat, a table with rules, a type that signs in, custom roles on a type, the `manage_roles` / `manage_keys` permission it needs, or a relation with one table of members (`authz.sync_members`). Often the app and the database disagree on the policy: apply the migrations. SQLSTATE P0001. It is the app's mistake, not the user's: the SDKs leave it an error, a 500.

Reported to the app, by the `authz.*` functions and the policy's rules: the code is in the error's HINT (`rowstile help AZ707`), and the SDKs' errors carry it as `code`.
