Permissions
Who can read, write or submit which Records, and how to find out why.
Cardinal checks permissions on the server for every read, write, list, count and link search. Nothing is cached, so a role change applies on the next request on every node.
Roles and rules
A user holds roles. Each RecType has rules that give a role a set of rights.
| Right | Allows |
|---|---|
select | Pick the Record in a Link field |
read, write, create, delete | The basics. read includes select |
submit, cancel, amend | Docstatus changes, on submittable RecTypes |
print, email, report, import, export, share | The matching desk actions |
Rights add up across roles. There is no deny rule.
permissions:
- {role: Projects Manager, rights: [read, write, create, delete, report, export, share]}
- {role: Projects User, rights: [read, write, create]}
- {role: Projects User, if_owner: true, rights: [delete]}
- {role: Projects Manager, permlevel: 1, rights: [read, write]}Every signed-in user also holds All. Administrator passes every check.
Narrowing rules
| Setting | Effect |
|---|---|
if_owner: true | The rule applies only to Records the user created |
permlevel: N | The rule governs fields set to level N. Level 0 rules decide access to the Record itself |
| User Permission | Limits a user to Records that link to given values, such as one Company |
| Row rule | An expression in the RecType, such as doc.status != "Closed", that removes rights on Records where it fails |
A User Permission with Allow Company and For Value Acme India limits that user to Records whose Company Link is Acme India. Lists, counts and link search apply the same limit in SQL.
| User Permission field | Effect |
|---|---|
| User, Allow, For Value | The user, the RecType and the value they may use |
| Applicable For | Limit only this RecType's Links. Empty applies to every RecType |
| Is Default | Fill this value into new Records for the user. One default per user and RecType |
| Hide Descendants | On a tree RecType, such as Territory, allow only the value and not its children |
System Settings' Apply Strict User Permissions also hides Records whose Link is empty.
Sharing
Share a single Record from the form sidebar. Pick a user, or everyone, and tick Read, Write, Submit or Share. You can only share rights you hold. A share gives access even where rules and User Permissions would refuse.
Changing rules in the desk
A System Manager edits rules in the Permission Manager at /desk/permission-manager. Pick a RecType and an optional role, then tick rights per row. Changes are stored for this site only, on top of the app's rules. To undo them:
cardinal perm reset -t erp.localhost --rectype "Sales Invoice"Role Profiles give a user a fixed set of roles. Module Profiles hide modules from a user's desk navigation but take no rights away.
Explain a decision
perm explain prints each step that led to an allow or a deny.
cardinal perm explain -t erp.localhost --user jane@acme.com \
--rectype "Sales Invoice" --name SINV-2026-00012 --ptype writeLeave out --name to check the RecType as a whole. The steps name the rule, owner check, User Permission, row rule or share that decided.
In the desk, a System Manager gets the same trace from the Permission Inspector at /desk/permission-inspector. Fill RecType, an optional Record, User and Permission Type, then save. The trace shows in Output, and nothing is stored.