Roles
A role decides what its holders may do on the instance and how deep into project data their grants can ever reach. Which projects they reach still comes from grants. Root opens Roles from the sidebar; anyone else who follows a link to it sees a page saying they need roles.manage.
Custom roles need both DOPBASE_RBAC=true and DOPBASE_RBAC_ROLES=true on the server. Without them the page leaves the sidebar, role pickers offer only the built-in roles, and people who already hold a custom role keep it.
The table lists each role with a built-in or custom tag, the deepest level it reaches, how many capabilities it holds, how holders sign in, and how many accounts hold it.
Built-in roles
Admin, Member, Auditor, and AI agent are built in. They can't be changed or deleted. Opening one shows its settings read only. Choose Duplicate to start a custom role from them. See identity and access for what each one holds.
Create a role
Choose New role, or Duplicate in a role's ⋯ menu, and fill in:
- Basics: a name and an optional description, shown in the role picker on Users.
- Project data: the deepest level any grant can give holders. Higher grants are cut down to this level. A Viewer might stop at Read. On a phone this is a list to pick from.
- What holders can do: the capabilities, grouped under People, Projects, Audit, Tokens, AI agents, and Instance. Each shows its name, such as
users.view. Root's own powers, such as backups and single sign-on, aren't listed.grants.manageisn't listed either: Dopbase doesn't check it yet, and a role that already has it keeps it when saved. - Personal tokens: appears when the role holds personal tokens. Pick whether tokens reach project data or the audit log only, what they can do (Names only or Read), and their longest lifetime: 30, 90, or 365 days.
New roles sign in with password or single sign-on, and that can't change later. A custom role with its own sign-in method, such as token only for AI agents and CI, comes in a later release. An existing role's page shows how its holders sign in under Signs in with.
Before you save, check the Summary at the end of the form. It updates as you edit and shows:
- Reaches at most: the level you picked.
- Holders can: how many of the 14 capabilities the role holds, and which.
- Their tokens: what personal tokens reach, what they can do, and how long they last.
- Who can give it: root, plus each built-in role that holds
users.manageand whose capabilities and level cover this one. Only they can give it on Users. - Closest built-in: the built-in role with the fewest differences, and what those differences are.
A role that can manage people, manage any AI agent, or revoke other people's tokens gets a warning in the Summary.
Then choose Create role. On a phone, Create role and Cancel stack at full width.
Some examples:
Change or delete a role
Open a custom role, or choose Edit in its ⋯ menu, change it, and choose Save role. Everyone holding it gets the new settings on their next request. Lowering how far the role reaches lowers its tokens' limit too.
Choose Delete role and type the role's name. A role someone holds can't be deleted: the dialog says how many accounts hold it, so give them another role first.
Who can give a role
Giving a role takes users.manage. On Users, people can pick only the roles within their own: every capability of the role must be one they hold, and its level no deeper than theirs. Root can give any role.
Role changes are recorded in the audit log as role.created, role.updated, and role.deleted.