Roles
How roles grant access in Servicely, how roles contain other roles, and how to plan role levels for an application.
A role is a named grant that permissions, menus and other features check before they let a user act. This page is for administrators who decide which roles users and groups hold and who design roles for a new application.
How roles grant access
Servicely restricts information by checking the roles a user holds. Roles are additive. To give access to a record, you give the user a role that a permission allows. You do not check for the absence of a role.
These features check a user’s roles:
- table, field and transition permissions
- navigation menu sections and items
- application properties
- table record restrictions
- workflow transitions
Server and client scripts can also check a user’s roles.
You manage roles under Administration → Permissions & Security → Roles. A role record has a Name and a Description. The name is what permissions, menus and scripts refer to. Role names are written in code formatting on these pages, for example itsm_agent.
How users get roles
A user holds a role in two ways:
- The role is on the user record.
- The user is a member of a group that holds the role.
A user’s roles are the union of both. A group’s roles apply to every member while they stay in the group.
Roles that contain roles
A role can contain other roles. A user or group that holds the containing role also holds every role it contains, and every role those roles contain.
Use this for application administrator roles. The administrator role of an application usually contains every other role of that application. A user who holds it then has the agent and manager rights as well.
Base roles
Two platform roles give the access most users need:
| Role | Holder |
|---|---|
platform_selfservice |
Every requester who raises and reads their own tickets |
platform_agent |
Every agent who works tickets |
Applications add their own roles on top of these. An ITSM agent holds itsm_agent and platform_agent. The full list is in Platform roles.
Plan role levels for an application
Give a new application more than one level of access. Then more people than administrators can do the work, and nobody gets more than they need. The common pattern has three levels:
| Level | What the role allows |
|---|---|
| Agent | Use the application’s process, for example complete tickets. No delete rights and no escalation features. |
| Manager | Features that need more responsibility, for example raising a major incident or skipping an approval step. |
| Administrator | Delete records and configure the application, for example create classifications or decide whether a record needs approval. |
The shipped applications follow this pattern. ITSM has itsm_agent, itsm_manager and itsm_administrator. Knowledge has knowledge_editor, knowledge_manager and knowledge_administrator.
Roles for people outside your organisation
platform_selfservice lets a requester see other users and the records they need to raise a ticket. Users from outside your organisation, such as vendors, often should not see that much. Create a separate role for them instead of changing platform_selfservice. Then add read access only to the records they need.
Application administration
application_administrator lets an application’s administrators maintain some platform records for their own application’s tables, such as classifications and SLA definitions. A user needs application_administrator together with the role the application names. The rules are in Platform table permissions.