Roles and least privilege
This page is for administrators and project managers who decide who may do what on a public site. In Exponential access is decided by roles made of policies (module, function, limitations), assigned to users or groups; nobody gets anything no role gives (Roles, policies and unactivated users, Security and audit, 2).
Contents
- Rules of thumb
- Security-sensitive policies
- A sample role design
- Leavers and movers
- Access reviews
- Related pages
Rules of thumb
- One personal account per person; retire the shared
adminlogin (Account hygiene). - Never edit the Administrator role to give a colleague more; make a new role.
- Keep few administrators: granting a role with
*/*,setup/*,role/*oraudit/manageraises the alertadmin_role_granted. - Limit by section or subtree so a department edits only its own content (Sections).
- An edit policy also opens the object's versions; limit it as you limit the read policy.
Security-sensitive policies
From 13.5 The administration siteaccess and the feature pages:
| Policy | Allows |
|---|---|
setup/setup | settings views and writes |
setup/managecache | cache clearing |
setup/logs, setup/managelogs, setup/unmasklogs | reading, rotating, unmasking logs |
audit/read, audit/manage | the audit trail; archives and verification |
role/* | creating and assigning roles |
user/hygiene, user/deactivate | account review, disabling, Deactivate and move |
mailpreferences/administrate, mailpreferences/export | people's mail preferences and consent log |
infocollector/read | form submissions |
contentfinder/search, contentfinder/delete | finding content by id or path and deleting it |
package/* | uploading and installing packages |
A sample role design
| Role | Policies (limited) | Assigned to |
|---|---|---|
| Department editor | content/read, content/create, content/edit limited to the department's section or subtree | each department's editors group |
| Publisher | as editor, plus approval in the workflow | senior editors |
| Web administrator | content everywhere, setup/managecache, user/hygiene | web team |
| Auditor | audit/read limited by Channel | internal audit, security officer |
| System administrator | Administrator | two or three named people |
Leavers and movers
- Disable the account on the day someone leaves (Users > Check user accounts, Disable); its sessions end.
- With
[UserSettings] DeactivateAndMove=enabled(opt-in), Deactivate and move disables the account and moves it into a hidden group without roles, reversibly, keeping its content and history (Deactivate and move). Removing a user object is final: users never go to the trash. - Movers: change group membership, not the roles of the group.
Access reviews
Twice a year, or as your policy says:
- Users > Check user accounts: filters Never signed in, Not seen for N days (180 by default), Shared login, Shared e-mail address; Export the list as CSV for the review record.
- Roles: open each role (Users > Roles and policies,
/role/list) and check its assignments. - Audit:
/audit/console/(name)/access.role.*lists role changes since the last review. - File the CSV and the decisions.
Related pages
- Roles, policies and unactivated users
- Check user accounts
- Roles and policies course
- Free documentation: this page is free to copy, translate and improve under the GNU FDL 1.3.
Become an Exponential Partner
Partners share their information, provide funding, contribute back and develop the products with us, and that is how Exponential grows. A partner website and dashboard are planned for mid-2027: please become a partner today to speed up our growth rate and land new features faster.