name | string | yes | |
principal | object | yes | the class of caller the policy applies to; {kind: enum(role|end_user|share|public), value?: string} |
applies_to | string | yes | a model name, or * for every model |
actions | enum(read|create|update|delete)[] | yes | |
where | object | no | a where object of the query grammar; variables @principal.person, @principal.member, @principal.identity, @principal.affiliated_organizations, @share.id, @now; `` |
fields | string[] | no | field allow-list for read or update |
enabled | bool | yes | default true |
origin | enum(pack|workspace|share) | yes | who created it; default workspace |