Skip to main content

Roles & Permissions

Zihin uses role-based access control (RBAC) for tenant management.

Available Roles​

RoleDescription
ownerFull access including billing and tenant deletion
adminManage users, agents, connections, and settings
editorCreate and edit agents, schemas, and configurations
viewerRead-only access to dashboards and reports

Permission Matrix​

ActionOwnerAdminEditorViewer
View dashboardsYesYesYesYes
Create/edit agentsYesYesYesNo
Manage connectionsYesYesNoNo
Invite usersYesYesNoNo
Manage billingYesNoNoNo
Delete tenantYesNoNoNo

Assign Role via API​

PATCH https://tenant-api.zihin.ai/api/tenants/:id/users/:userId
{
"role": "editor"
}

Or via console: Settings > Team > click user > Change Role.