Skip to content
CCHPCCHPDocs
↑↓↵pagefind

Back to Organizations vs. teams5 min read

Permissions and custom roles

Learn how CCHP's built-in roles and privilege ranks work, create and maintain custom organization roles, add or remove members directly in role details, control whether organization admins can view members' request content, and use the System permission center and Identity Diagnostics to repair drift.

CCHP uses a multi-tenant RBAC model powered by Casbin and privilege ranks (RoleRank). Beyond the built-in organization and team roles, organization admins and owners can create fine-grained custom roles (such as “Provider Operator” or “Audit Viewer”) to define exact read/write boundaries for providers, models, limits, billing, and audit logs.

Open Org management → Permission Management (/app/org/permissions/roles) in the sidebar. Platform super admins also see the System permission center tab at the top of the same page.

Built-in roles and privilege ranks#

Every organization includes four system-managed preset roles (which cannot be deleted). Each role’s privilege rank governs management hierarchy—admins can only modify roles of members whose rank is lower than their own:

Built-in roleKey (builtinKey)RankPermissions summary
Organization ownerorg_superadmin90Full permissions within the organization (*:.*); can appoint/revoke organization admins and control whether organization admins can view members’ request content; every organization must keep at least one
Organization administratororg_admin80Manages members, teams, invite codes, Enterprise SSO, permissions, providers, models, and limits for the organization, and views organization-wide call records and billing (request content visibility is governed by the owner toggle v1.0.15+)
Team administratorteam_admin50Manages basic settings, member limits, and client access rules for their team and sub-teams, and views team call records
Regular usermember10Creates and manages own LLM keys and views own call records and wallet; does not see the Org management menu

In addition, Platform super admin is a global identity on the account itself, independent of any single organization, granting access to the Administration menu and cross-organization management.

Permission Management: organization roles list, preset/custom filters, and Identity Diagnostics entryPermission Management: organization roles list, preset/custom filters, and Identity Diagnostics entryCCHP

Manage custom roles and member bindings#

Under Permission Management → Organization roles, you can search by name, filter by type (Preset / Custom), or sort by Privilege level, Name, or User count.

Create a custom role#

  1. Click New role in the top-right corner and enter a Role name and Role description. Custom roles cannot share a name with a system preset role v1.0.15+.
  2. Open the new role’s detail page, check the allowed actions grouped by resource, and save.
  3. All custom roles use a fixed custom rank; a member’s effective permissions combine their built-in organization identity with their bound custom role through the backend Casbin policies.

Manage role members directly v1.0.15+#

Click any custom role to open its detail page (/app/org/permissions/roles/<roleId>). Besides editing permission checkboxes, you can manage bindings directly in the Members section:

  • Click Add users to search organization members by name or email and assign them to the role.
  • Click Remove from role on a member’s row to unbind them; the member immediately loses permissions granted by that role while keeping their built-in organization identity.
  • Each member can hold at most one custom role per organization. Adding a member who already holds another custom role switches them to the new role.
  • You must unbind every member from a custom role before deleting it; deletion cannot be undone.

Role details: permission checkboxes by module and direct member assignmentRole details: permission checkboxes by module and direct member assignmentCCHP

High-sensitivity permissions and security boundaries#

When assigning custom roles or reviewing organization admin access, pay special attention to these sensitive capabilities:

Sensitive capabilityBoundary and control
View and export members’ request content (request_archive:read / export) v1.0.15+Organization owners can turn off “Organization administrators can view members’ request content” in organization settings or Permission Management to revoke request_archive:read and request_archive:export from the built-in Organization administrator role in one click; grant access selectively via a custom role or management token when troubleshooting is needed
Reveal full member LLM keys v1.0.5+Only admins with the corresponding reveal permission can inspect a member’s plaintext key in Manage users; every reveal requires step-up authentication and writes an audit log entry
View provider costs and upstream detailsRegular members and custom roles without provider permissions never see provider keys, cost multipliers, or raw upstream errors in request logs, leaderboards, or pricing pages
Wallet writes and billing adjustments v1.0.4+Credit grants, compensation, dispute refunds, and price adjustments strictly prohibit self-approval v1.0.15+; every change requires preview confirmation and records full audit and financial events
Audit log visibility scope v1.0.4+Organization admins only view their own organization’s audit logs; platform super admins can additionally select the reserved system organization in audit filters to view platform-wide events v1.0.10+

System permission center and Identity Diagnostics#

Platform super admins with platform-level identity:read permission can switch to System permission center (/app/org/permissions/center) from the top tab bar in Permission Management to audit and inspect the backend authorization model read-only:

  • Roles and Casbin Policies: Inspect every backend-registered system, organization, and team role, its rank, the resource-action catalog, and whether each rule supports resource-ID scoping.
  • Permission matrix: View the cross-tabulated matrix of allowed actions per role across system, org, and team scopes (higher rank wins on conflicts).
  • Identity Diagnostics and repair: Click Identity Diagnostics in the top-right corner of Organization roles to scan for drift between organization memberships and Casbin policies. If mismatches appear, click Preview repair to inspect affected users and the exact change plan (previews carry a short expiry), then click Apply repair to commit local policies and broadcast cache invalidation to all other cluster nodes.

Frequently asked questions#

Why can’t I delete a custom role?#

CCHP requires unbinding all members referencing a custom role before deletion. Open the role’s detail page, click Remove from role for every member in the list, and then click Delete role at the bottom. Preset roles are managed by the system and cannot be deleted.

Why can’t an organization admin open members’ request content?#

Check whether the organization owner turned off “Organization administrators can view members’ request content” v1.0.15+. Turning it off revokes request_archive:read and request_archive:export from the built-in organization admin role. To let specific on-call admins keep access, assign them a custom role that grants request-content read access.

Can one user hold two custom roles at the same time?#

Within the same organization, each user can be bound to at most one custom role. If a member wears two hats (for example, managing providers and viewing audit logs), create one custom role combining both permission sets and assign it to that member.