Adding Users and Employees
Users in Liona represent the individuals or systems that will access your AI providers. This could include your employees, customers, or application services. Adding a user in Liona allows them to authenticate and use AI providers without ever seeing your original API keys.
Creating a User
Navigate to Users
In the Liona dashboard, click “Users” in the sidebar navigation.
Click “New User”
Click the “New User” button in the top-right corner of the page.
Enter user details:
- Unique ID: Enter a unique identifier for the user (e.g., email, user ID, username)
- This must be at least 3 characters
- This will be how you identify the user in your system
- Email (Optional): The user’s email address for identification
- Policy: Select a usage policy to apply to this user
Create the user
Click “Create User” to add the user to your project. After creation, you’ll be prompted to create an access key for the new user.
Copy the access key
Copy the generated access key.
Managing Access Keys
Access keys are how users authenticate with Liona. You can create multiple access keys for each user, with different expiration dates.
Generating Additional Access Keys
You may need to create additional keys for a user if:
- The original key was lost
- You need to rotate keys for security
- Different applications need separate keys
To generate a new access key:
- Navigate to “Users” and select the user
- In the “Access Keys” section, click “Create Key”
- Select the expiration period (30 days, 90 days, 180 days, 1 year, or never)
- Click “Create Access Key”
- Copy the new access key
Managing Existing Keys
For existing keys, you can:
- View: See key details including last use and expiration date
- Deactivate/Activate: Temporarily disable a key without deleting it
- Copy: Copy the key to the clipboard
User-Specific Policies
In addition to the default policy assigned during creation, you can create user-specific policies:
- Navigate to the user’s detail page
- In the “User Policy” section, click “Create Policy”
- Set the policy limits
- Set an expiration date for the temporary policy
- Click “Create Policy”
User policies override project-level policies and are great for:
- Temporarily increasing limits for high-usage periods
- Providing special access for specific users
- Testing different usage patterns
Blocking Users
If you need to prevent a user from accessing your AI providers:
- Navigate to the user’s detail page
- Click the “Block User” button
- Confirm the action
Blocking a user immediately prevents all their access keys from working. You can unblock a user at any time to restore access.
Dynamic User Creation via API
For applications that need to create users programmatically, Liona provides an API for user management. See the API Reference for more details.
Tracking User Usage
To monitor how your users are using the AI providers:
- Navigate to the user’s detail page
- View their usage statistics in the “Executions” section
- For more detailed tracking, see Tracking Usage
Next Steps
After adding users and generating access keys:
- Share the access keys with your users or integrate them into your applications
- Track usage to monitor spending and activity
- Explore connecting with SDKs to use native AI libraries