Roles & RBAC
The Roles & RBAC page (/roles) lets organization owners define what capabilities administrative roles hold inside the HR & Manager Portal. Every permission rule is checked server-side on API and action execution—never solely in client UI visibility.
1. Automatic Initialization (Super Admin & Baseline Rules)
The first time /roles is opened for a newly provisioned organization, the Owner Panel automatically ensures baseline governance records exist:
- System Default Role (
Super Admin): If noSuper Adminrole exists yet, the system creates one automatically with wildcard access (['*']— Full Administrative Access). - Baseline Alert Rules Catalog: When the organization has no custom or seeded distraction alert rules yet, initialization seeds the platform's
209default productivity/distraction alert rules into the organization catalog.
Because Super Admin serves as the recovery and full-access template (System Default), its Edit and Delete buttons are intentionally locked and hidden in the Roles table so it cannot be stripped or deleted.
2. Roles Directory
The main table on /roles lists every role configured for your organization:
- Role Name: Role title, with a shield badge and
System Defaultindicator onSuper Admin. - Description: Summary of the role's intended scope or responsibility.
- Permissions Matrix: Displays either
Full Administrative Access (*)or up to 5 individual permission badges plus a+{N} moreoverflow indicator. - Actions: Edit and Delete controls for all custom roles.
Figure: The Role-Based Access Control page showing the locked Super Admin System Default role and the + Create Custom Role trigger.
3. Creating & Editing Custom Roles
Click + Create Custom Role (or Edit on any custom role) to open the unified Role Builder modal:
- Role Identity: Enter a required Role Name (e.g.,
Regional HR Lead) and an optional Description. - Bulk Selection: Use Select All (21) / Clear All or Select All in Tab to populate or reset permissions quickly.
- Permission Categories (3 Segmented Tabs):
View Access (11 permissions)
View Dashboard(view:dashboard)View Employees(view:employees)View Attendance(view:attendance)View Productivity(view:productivity)View Screenshots(view:screenshots)View Sessions(view:sessions)View Breaks(view:breaks)View Alerts(view:alerts)View Notifications(view:notifications)View Desktop App Management(view:desktop-app-management)View Settings(view:settings)
Figure: Selecting read-only View Access permissions in the Create Custom Role modal.
Management (9 permissions)
Manage Employees(manage:employees)Manage Attendance(manage:attendance)Manage Screenshots(manage:screenshots)Manage Alerts(manage:alerts)Manage Productivity Policy(manage:productivity)Manage Notification Settings(manage:notifications)Manage Integrations (Slack)(manage:integrations) — connect or disconnect the organization's Slack workspace in HR Settings.Manage Settings(manage:settings)Manage Screenshot Capture(manage:screenshot_capture) — configure screenshot capture intervals and random timing in HR Settings (requires organization-wide employee scope).
Figure: Configuring administrative Management action permissions in the Create Custom Role modal.
Data Scope (1 permission)
Limit to Own Team Data(scope:team_only) — restricts data visibility strictly to the administrator's assigned department/team scope.
Figure: Restricting visibility via the Data Scope tab (Limit to Own Team Data) in the Create Custom Role modal.
4. Propagating Changes & Deleting Roles
- Live Propagation: Saving edits to an existing role immediately updates the permissions enforced for every HR administrator currently assigned to that role on their next click or request.
- Deleting a Role: Clicking Delete on a custom role prompts a confirmation dialog (
Are you sure you want to delete this role?). Once you define your roles here, assign them to individual accounts on Manage Admins.