Skip to content

AZ705: Not allowed ​

The signed-in person asked an authz.* function for something the policy doesn't let them do: share or unshare this object, share it with this subject (the relation's shared if), give a role, give (by a share or a role) a permission they don't hold, manage roles or keys, see the roles, who has access, the shares or the links, explain someone else's access, view as a user, turn a link off, decide a request (not their own) or a review, break the glass. A role that may not call authz.act_as gets it from authz.who_among, which signs people in. The message says what; authz.explain(type, id, perm) says why, and a refused share or unshare says it in its DETAIL (the SDKs' why). SQLSTATE 42501; answer 403, as the SDKs do (Refused, with this code).

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