Skip to main content
Truthlocks implements role-based access control (RBAC) to manage who can perform which actions. This guide explains the permission model.

Permission Model

The Truthlocks permission model consists of three layers:
1

Permissions

Atomic actions like attestations:mint or users:read. These are the building blocks.
2

Roles

Collections of permissions grouped by function. Roles like admin, issuer, or viewer.
3

Assignments

Binding users or API keys to roles. A user can have multiple roles.

Available Permissions

Attestation Permissions

Issuer Permissions

User Management Permissions

Administrative Permissions

Webhook permissions

Governance permissions

Settings permissions

System roles

Truthlocks provisions a set of system roles automatically when your tenant is created. System roles cannot be edited or deleted. You can view system roles from the Roles page in the console. Each role shows its name, description, and a System badge.

Custom roles

Create custom roles to define access permissions tailored to your team’s structure. Custom roles are available on all plans.

Creating a custom role in the console

1

Open the Roles page

Navigate to Roles in the console sidebar.
2

Click Create Custom Role

The Create Custom Role button opens a dialog where you provide:
  • Role Name — a descriptive name for the role (for example, Developer or Compliance Officer).
  • Description — a brief explanation of what the role is for.
3

Save the role

Click Create Role to save. The new role appears in the Custom Roles section of the Roles page.

Creating a custom role via the API

Resource-level constraints

Custom roles support optional constraints that limit permissions to specific resources:
Resource-level constraints (such as limiting to specific issuers) are available on Enterprise plans.

API Key Scopes vs. User Roles

Both API keys and users have permissions, but they work differently:

Best Practices

  • Least Privilege: Grant only the permissions needed for each role
  • Separate Duty: Don’t give one role both attestations:mint and governance:approve
  • Regular Audits: Review role assignments quarterly
  • Use API Keys for Automation: Don’t share user credentials for scripts
  • Document Custom Roles: Keep a record of why custom roles were created

Next Steps

Audit Logs

Track all permission-related events.

Identity API

Manage users and roles programmatically.