Skip to main content
Trinity
Getting Started/Roles and Permissions

Roles and Permissions

Trinity uses a 4-tier role system to control who can create agents, manage existing ones, or just interact with them.

Role Hierarchy

admin

Highest

Can create and manage all agents. Password login required.

creator

Default

Can create agents and manage own agents only. Email whitelist signup.

operator

Cannot create agents. Can manage assigned agents only. Email whitelist, role manually set.

user

Cannot create or manage agents. Public links only.

Roles are hierarchical: admin > creator > operator > user. Higher roles inherit all permissions of lower roles.

How It Works

Default Role Assignment

When you sign up via email (if whitelisted), you receive the creator role by default. This allows you to immediately create and manage agents.

Admins can change a user's role at any time via Settings.

Role-Based Restrictions

ActionRequired Role
Create agentscreator or above
Delete agentsOwner or admin
Configure agent settingsOwner or admin
Run tasks and schedulesoperator or above (with access)
Chat with shared agentsAny authenticated user
Use public linksAnyone (no auth required)

Managing User Roles

Admin only: Navigate to Settings and scroll to the User Management section.

1

Find the user in the table.

2

Select a new role from the dropdown.

3

The change takes effect immediately on their next request.

You cannot change your own role.

For Agents

User roles are stored in the users table. The role is checked on each API request via the require_role() dependency.

EndpointMethodDescription
/api/usersGETList all users (admin-only)
/api/users/{username}/rolePUTChange a user's role (admin-only)

Request body:

{"role": "operator"}

Valid roles: admin, creator, operator, user

Limitations

Role changes apply immediately but don't invalidate existing JWT tokens.

Public link users have no database entry — they operate at the user level.

Admins cannot demote themselves.