# AZ706: The policy doesn't allow this share

The share asked for isn't one the policy declares: the relation isn't `shared` with that kind of subject (say, a team where only users may be given it), the role isn't one of the object's, a role would grant a permission roles can't grant, or a role is made for an owner of another type than the policy's roles line says. Change the call, or the policy's relation. 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 AZ706`), and the SDKs' errors carry it as `code`.
