Users, roles and scopes
Give each person the minimum access that lets them work, and know why a role is not a job title.
OSMAINT has a small set of seeded roles and a scope matrix. A role is a bundle of scopes; a scope is a permission such as wo:write or users:manage. Access is enforced on the server, not hidden in the interface.
The seeded roles
- admin: the widest set, including users:manage, system:configure and organization:write.
- manager: broad operational access without user administration or system configuration.
- scheduler: work orders, scheduling, time, appointments and asset templates.
- technician: execute work, report time, meters, alarms, documents and improvements.
- fabrik (plant operator): create requests, report meters, raise alarms.
- viewer: read everything, write nothing.
Why the split matters
The plant operator role exists so the person who sees the fault can report it without being able to rewrite the work-order register. The viewer role exists for auditors, managers and dashboards. Neither is a courtesy role; both reduce the blast radius of a mistake.
Adding a person
- Create the user with a real address and a name that matches the organisation's register.
- Assign the narrowest role that covers the job.
- If the person needs one extra scope, question whether the role is wrong before granting a one-off permission.
- Ask the person to log in once and confirm what they can see. A role that looks right in the matrix can still be wrong for the workflow.
Do not share accounts. The audit trail is only worth something if each action maps to one person.
Leavers
Deactivate the account the same day. Do not delete it: work orders, time entries and audit records reference the user. A deactivated account keeps history intact and stops new logins.
Create a viewer account and log in with it. Confirm that read pages work and that a write action returns insufficient permissions rather than silently succeeding.
Terms
- Scope
- A single permission such as wo:write, inventory:write or users:manage.
- Role
- A named bundle of scopes assigned to a user.
- Least privilege
- Giving the minimum access needed for the job, and no more.
OSMAINT Academy · Administration · Users, roles and scopes · osmaint.org/academy/