Hipocap uses role-based access control (RBAC) to control which users can call which functions.Documentation Index
Fetch the complete documentation index at: https://docs.hipocap.com/llms.txt
Use this file to discover all available pages before exploring further.
What is RBAC?
Role-Based Access Control (RBAC) assigns permissions to roles, and users are assigned roles. This provides:- Centralized management - Manage permissions in one place
- Scalability - Easy to add new users by assigning roles
- Security - Principle of least privilege
- Auditability - Clear record of who has what access
Defining Roles
Via UI
- Navigate to Policies → Select a policy
- Go to Roles tab
- Add or edit roles
- Assign function permissions to each role
Role management is currently available through the Hipocap web UI. Python SDK methods for role management are not yet available.
Common Role Patterns
Admin Role
Full access to all functions:User Role
Standard user access:Guest Role
Read-only access:Analyst Role
Analysis and read access:Using Roles in Function Calls
Specify User Role
Pass theuser_role parameter when calling analyze():
Role-Based Decision
Hipocap checks if the user’s role has permission for the function. The analysis result includes RBAC information:Permission Types
Read
- View function results
- Read data
- Search operations
Write
- Create or modify data
- Send operations
- Update operations
Delete
- Delete data
- Remove operations
Admin
- Administrative operations
- Policy management
- System configuration
Function-Level Permissions
You can also define permissions at the function level:Dynamic Role Assignment
Roles can be assigned dynamically based on context:Role Hierarchy
You can implement role hierarchies:Best Practices
- Principle of Least Privilege - Give users minimum permissions needed
- Regular Audits - Review role assignments regularly
- Clear Naming - Use clear, descriptive role names
- Documentation - Document what each role can do
- Testing - Test role permissions before production
Example: Email System
Next Steps
- Function Access Control - Configure function permissions
- Policies - Manage policies
- Function Chaining - Control function chains
