Policies
Authorization › Policies holds your organisation's policies: documents that allow or deny actions on resources, in the style of cloud IAM policies. This page is for administrators. It explains how a policy is written and how to create, edit and delete one.
Today, what people can do in Syott comes from their roles. You can write and save access policies here, but your own access policies don't change what anyone can do yet. To grant or limit access now, use roles.
How a policy is written
A policy has a name, an optional description, a type, and one or more statements. Each statement has:
| Part | Meaning | Example |
|---|---|---|
| Effect | Allow or Deny | Allow |
| Actions | The actions the statement covers | core_hr:read |
| Resources | The resources it applies to; * means all |
core_hr:worker:team/* |
| Label | An optional name for the statement | Managers read team |
A policy can hold several statements, so one policy can allow some actions and deny others.
Policy types
| Type | Used for |
|---|---|
access_control |
Who can do what on which resources |
hr_rule |
HR rules, such as eligibility |
workflow |
Approval chains for workflows |
visibility |
Which fields people can see |
validation |
Validation rules |
System and custom policies
The list shows each policy with its type, its number of statements and whether it's a System policy. System policies come with Syott and can't be edited or deleted. Policies you create are yours to change.
Create a policy
- Open Authorization › Policies and select New policy.
- Give the policy a name, for example "Managers read team", and a description of what it grants or denies.
- Under Statements, add a statement and choose Allow or Deny.
- Add one or more Actions and Resources.
- Add more statements if you need them. To remove one, select Remove statement.
- Select Create policy.
Edit or delete a policy
Open the policy from the list to change its name, description or statements. To delete it, select Delete policy and confirm. System policies show System policies can't be edited.