Roles say what. Grants say where.
A role is the operations that one job needs, declared in the schema. A profile groups roles for one function. A grant gives a profile on one scope value.
| Operation | What it allows |
|---|---|
| Read | Reading the records of an entity, except its restricted fields. |
| Change | Changing a layer. |
| Decide | Approving or rejecting a run that a layer holds. |
| Roll back | Rolling back the runs of a layer. |
| Call | Calling a procedure that a domain exposes. |
| Start | Starting a workflow. |
Six operations
A role names operations on the entities and the layers of its own domain.
| Part | Rule |
|---|---|
| A role | A named permission. Each domain declares its own, in its schema. |
| A profile | It bundles roles from several domains for one function. |
| A grant | It gives one profile on one scope value of one environment, and covers everything below it. |
| Engine roles | Owner, admin, developer, auditor and custodian come with the engine. |
| No deny | Grants only add, and no rule denies. |
From a role to a grant
An owner holds the whole org and needs no grant. Every other person, group or app holds what its grants give.