User Management
Users are the individuals or groups who make requests to your Admin Bud-E instance. Each user has:
- A unique username (identifier)
- An API key (for authentication)
- A credit balance (for usage tracking)
- A project assignment (for shared budgets)
- Optional: allowance (periodic credits from project)
- Optional: common pool access (shared credits)
User Overview
In the Admin UI, navigate to Users to see:
- List of all users
- Current credit balances
- Project assignments
- API key status (active/inactive)
- Filters and search
Creating Users
Method 1: Manual Creation
- Navigate to Users
- Click Create User
- Fill in:
- Username: Unique identifier (e.g.,
teacher-smith,class-5a,student-12345) - Project: Select from dropdown (or leave unassigned)
- Initial Credits: Starting balance (e.g.,
1000)
- Username: Unique identifier (e.g.,
- Click Save
The system automatically generates a secure API key.
Method 2: Bulk Import (CSV)
For schools and organizations with many users:
Prepare a CSV file with columns:
csvusername,project,initial_credits teacher-smith,teachers,5000 teacher-jones,teachers,5000 class-5a,students,1000 class-5b,students,1000Navigate to Users → Import
Upload your CSV file
Review the preview
Click Confirm Import
TIP
CSV import is the fastest way to onboard 50+ users. API keys are generated automatically.
Understanding Credit Balances
Each user has multiple credit "pools" that are consumed in order:
1. Allowance (if enabled)
Periodic credits granted by the project (daily, weekly, or monthly). This refreshes automatically.
Example:
- Project "Teachers" grants 100 credits/day
- User has 75 allowance credits remaining
2. Common Pool (if enabled)
Shared credits available to all project members. Used after allowance is depleted.
Example:
- Project has 5,000 common pool credits
- User can draw from this when allowance runs out
3. Personal Credits
Credits assigned directly to the user. These don't refresh automatically.
Example:
- User has 200 personal credits
- Used after allowance and common pool
Consumption Order
Request → Check Allowance → Check Common Pool → Check Personal Credits → RejectIf any pool has sufficient credits, the request succeeds.
INFO
"Effective Credits" = Allowance + (Common Pool share) + Personal Credits
API Keys
Viewing API Keys
For security, API keys are hidden by default in the user list.
To reveal a user's key:
- Click View Key next to the user
- Copy the key
- Share it securely with the user (encrypted email, password manager, etc.)
WARNING
Never share API keys in plain text emails, chat messages, or screenshots that might be shared.
Rotating API Keys
If a key is compromised or needs to be changed:
- Navigate to Users
- Click Rotate Key for the user
- Confirm the action
- Old key is immediately invalidated
- Copy the new key and share it with the user
DANGER
Key rotation breaks existing integrations immediately. Update all clients using the old key.
Deactivating Users
To temporarily disable a user without deleting them:
- Navigate to Users
- Click Deactivate for the user
- Confirm
Effect:
- API key no longer works
- User cannot make requests
- Credit balance is preserved
- Can be reactivated later
Reactivating Users
To restore access:
- Navigate to Users
- Click Activate for the user
- Confirm
The user's existing API key becomes valid again.
Editing Users
To modify user details:
- Navigate to Users
- Click Edit for the user
- Update fields:
- Username (if no usage history)
- Project assignment
- Personal credits (add/subtract)
- Click Save
INFO
You cannot change the username if the user has usage history. Create a new user instead.
Deleting Users
To permanently remove a user:
- Navigate to Users
- Click Delete for the user
- Confirm deletion
DANGER
This action:
- Deletes the user and their API key
- Preserves usage history (for audit trails)
- Cannot be undone
Before deleting, consider deactivating instead.
Managing Credits
Adding Credits
To grant additional personal credits:
- Navigate to Users
- Click Edit for the user
- Add to Personal Credits field
- Click Save
Example:
- Current balance: 500
- Add 1,000
- New balance: 1,500
Deducting Credits
To remove credits (e.g., correction, abuse):
- Navigate to Users
- Click Edit
- Subtract from Personal Credits
- Add a note in a comment field (if available)
- Click Save
TIP
Log manual credit adjustments externally (spreadsheet, admin log) for auditing.
Credit Transfers
To move credits between users:
- Deduct from User A
- Add to User B
- Note the transfer in both records
INFO
Future versions may include a dedicated "Transfer Credits" feature.
Filters and Search
The user list supports:
Search by Username
Type in the search box to filter by username.
Filter by Project
Select a project from the dropdown to show only users in that project.
Filter by Status
- Active: Users who can make requests
- Inactive: Deactivated users
Sort Options
- Username (A-Z)
- Credits (high to low)
- Recent Activity (most recent first)
User Usage Reports
To see detailed usage for a specific user:
- Navigate to Usage
- Filter by User → select the username
- Set date range (or leave empty for current month)
- Click Preview or Export
See Usage Reports for details.
Project Assignment
Why Assign Projects?
Projects enable:
- Shared budgets (common pool)
- Periodic allowances (daily/weekly/monthly credits)
- Grouped reporting (usage per project)
- Administrative organization (teachers, students, staff)
Assigning Users to Projects
During creation:
- Select project from dropdown when creating user
After creation:
- Navigate to Users
- Click Edit for the user
- Change Project dropdown
- Click Save
TIP
Reassignment takes effect immediately and affects allowance eligibility.
Unassigned Users
Users without a project:
- Have no allowance
- Cannot access common pool
- Can only use personal credits
Best Practices
Naming Conventions
Use clear, consistent usernames:
Good:
teacher-smithclass-5adept-mathstudent-00123
Avoid:
- Personal names (GDPR:
john.doe→ usestudent-00123) - Email addresses (not needed, privacy risk)
- Special characters (stick to letters, numbers, hyphens)
Initial Credits
For testing:
- 10-100 credits (enough for a few dozen requests)
For teachers/staff:
- 1,000-10,000 credits (depending on expected usage)
For students:
- 100-1,000 credits (or rely on allowance instead)
TIP
Start conservative. It's easier to add credits than to take them back.
Security
Distribute keys securely
- Use encrypted email or a password manager
- Never post in public forums or group chats
Rotate keys regularly
- Set a schedule (every 90 days)
- Rotate immediately if compromised
Monitor unusual usage
- Check usage reports for spikes
- Investigate users with zero balance (possible abuse)
Deactivate inactive users
- If a user leaves, deactivate their key
- Archive data but remove access
CSV Export
To export the user list:
- Navigate to Users
- Apply any filters (optional)
- Click Export CSV
- Save the file
CSV includes:
- Username
- Project
- Personal credits
- Effective credits
- Status (active/inactive)
- Last activity date (if tracked)
Use this for:
- Backup
- External reporting
- Integration with school systems
Troubleshooting
User Can't Authenticate
Problem: "Invalid API key" error.
Possible causes:
- User is deactivated → reactivate
- API key was rotated → provide new key
- Typo in key → verify exact string
- Key expired (if expiration enabled) → generate new key
User Has Zero Credits But Allowance Enabled
Problem: User shows 0 effective credits despite project allowance.
Possible causes:
- Allowance period hasn't refreshed yet → wait or manually settle
- Common pool is depleted → add credits to project
- User is not in a project with allowance → check project assignment
Cannot Delete User
Problem: Delete button is disabled or fails.
Possible cause: User has active sessions or pending requests.
Solution: Deactivate first, wait 5 minutes, then delete.