Skip to main content
Version: 1.2

Creating and managing roles

Route: /roles

A role is a named set of permissions plus optional user assignment rules. Use roles to standardize access for teams instead of tuning permissions per user.

See also: Overview · Permissions reference · List tables and bulk actions

Role properties​

FieldRequiredDescription
NameYesUnique role name shown in lists and user forms
PermissionsYesOne or more permission values from the dropdown (see reference)
Allowed KPI GroupsWhen KPI permissions applyRestricts KPI dashboards; shown only if permissions include KPI read/write/admin
Match PatternNoWildcard pattern for automatic role assignment at login
Manual UsersNoExplicit list of user logins that receive this role

Create a role​

  1. Open Access Control → Roles.
  2. Click Create role.
  3. Enter Name.
  4. Open Permissions and select every permission the role needs.
  5. If KPI permissions are selected, choose Allowed KPI Groups (All (Full Access), specific groups, or leave empty for no KPI access — see info alert in the form).
  6. Optionally set Match Pattern and/or Manual Users (at least one assignment method is recommended for custom roles).
  7. Click Create.

Create role — drawer

Edit a role​

  1. On Roles, click the role Name, double-click the row, or select one row and use Edit role from bulk actions.
  2. Update fields in the drawer.
  3. Click Update.

Built-in roles (admin, user, guest) open in the drawer for inspection, but editable fields are disabled. You cannot change their permission set from the UI.

Assign users to a role​

You can assign membership in two ways (both can be used together):

Match Pattern (auto-assignment)​

The Match Pattern field supports wildcards for automatic assignment when a user signs in (for example *@company.com or admin-*).

UI elementDescription
Auto-Assignment (info)Explains pattern-based assignment
Match PatternText pattern matched against the user login

Manual Users​

UI elementDescription
Manual Assignment (info)Explains direct user picks
Manual UsersMulti-select of users (Name (email) format in the list)
Users page

You can also assign roles while editing a user under Access Control → Users (/users). Changes on either screen affect the same role membership.

Allowed KPI Groups​

When the role includes any of read:kpis, write:kpis, or admin:kpis, the Allowed KPI Groups field appears.

SelectionTable displayEffect
All (Full Access)All KPIs (globe icon)Full KPI visibility
Specific groupsN group(s)Restricted to listed KPI groups
EmptyNo AccessNo KPI data despite KPI permissions on the role
Role has admin or admin:kpisAll KPIs with (inherited from admin)Admin-level KPI access

Duplicate a role​

  1. Select one or more custom roles (not built-in).
  2. Choose Duplicate role from the bulk action menu or row context.
  3. ToBeAlert creates copies with a unique name suffix, copying Match Pattern, Permissions, Manual Users, and Allowed KPI Groups.

Built-in roles cannot be duplicated.

Delete a role​

  1. Select one or more custom roles.
  2. Click Delete (row action or Delete role bulk action).
  3. Confirm in the dialog.

Built-in roles cannot be deleted. Deleting a role removes it from users who held it.

Table and bulk actions​

Select custom roles with the checkbox column, then use the bulk actions dropdown or context menu — see List tables and bulk actions. Module-specific actions:

Roles — custom role selected with bulk actions

Right-click a custom role row (built-in rows do not offer Duplicate or Delete in the menu):

Roles — row context menu

ActionSelectionNotes
Edit roleExactly one rowOpens the drawer
Duplicate roleOne or more custom rowsNot available for built-in roles
Delete roleOne or more custom rowsConfirmation required

Row actions (Edit, Delete) follow the same built-in restrictions.

Permissions picker​

Create role — Permissions dropdown open

The Permissions multi-select lists every permission your account may grant. You can filter the list and add custom Run tool entries (execute:tool:<tool-id>) when your organization uses scoped tool execution.

See Permissions reference for a full table of values and which management modules they unlock.

Best practices​

  1. Clone with Duplicate — copy an existing custom role, then trim permissions instead of building from an empty list.
  2. One role per job function — avoid mega-roles that mix alert handling, user administration, and notification design.
  3. Test with a pilot user — assign Manual Users temporarily before rolling out a Match Pattern.
  4. Re-check KPI groups after permission changes — adding KPI read permission without selecting groups leaves KPI access empty.
  5. Keep built-in roles intact — create new roles for organizational tiers instead of requesting changes to admin / user / guest.