Overview
LLM Gateway Enterprise includes comprehensive team and organization management with role-based access control.Organization Structure
Hierarchy
Organization Types
Personal Organizations
- Automatically created for each user
- Single owner (the user)
- Can invite team members
- Billed to owner’s account
Team Organizations
- Created explicitly by users
- Multiple members with different roles
- Shared billing
- Collaborative workspace
User Roles
Role Hierarchy
Owner
Owner
Full administrative accessPermissions:
- All admin permissions
- Manage billing and subscriptions
- Delete organization
- Transfer ownership
- Remove any member (including admins)
- Only one owner per organization
- Cannot remove themselves (must transfer ownership first)
Admin
Admin
Project and member managementPermissions:
- Create/edit/delete projects
- Manage API keys
- Invite and remove members
- Assign roles (except owner)
- View all analytics
- Configure settings
- Cannot manage billing
- Cannot delete organization
- Cannot remove owner
Member
Member
Standard access for developersPermissions:
- Use API keys
- View project analytics
- Create personal API keys
- View team members
- Access playground
- Cannot invite members
- Cannot manage billing
- Cannot delete projects
Viewer
Viewer
Read-only accessPermissions:
- View analytics
- View API key list (not the keys themselves)
- View team members
- Access documentation
- Cannot create API keys
- Cannot make API requests
- Cannot modify anything
Member Management
Adding Members
Email Invitation
Invitation Flow
- Owner/admin enters email and selects role
- System sends invitation email
- Recipient clicks invitation link
- If they have an account: added immediately
- If new user: prompted to create account first
- User is added to organization with specified role
Removing Members
Owners and admins can remove members:Changing Roles
Admins can update member roles:Membership Database Schema
Member Table
Invitation Table
Permission System
Checking Permissions
Permission Matrix
| Action | Owner | Admin | Member | Viewer |
|---|---|---|---|---|
| View analytics | ✓ | ✓ | ✓ | ✓ |
| Create API keys | ✓ | ✓ | ✓ | ✗ |
| Delete API keys | ✓ | ✓ | Own only | ✗ |
| Create projects | ✓ | ✓ | ✗ | ✗ |
| Delete projects | ✓ | ✓ | ✗ | ✗ |
| Invite members | ✓ | ✓ | ✗ | ✗ |
| Remove members | ✓ | ✓ | ✗ | ✗ |
| Change roles | ✓ | Non-owner only | ✗ | ✗ |
| Manage billing | ✓ | ✗ | ✗ | ✗ |
| Delete org | ✓ | ✗ | ✗ | ✗ |
Team Dashboard
Member List
View all team members with:- Name and email
- Role badge
- Join date
- Last active
- Actions (change role, remove)
Activity Feed
Recent team activities:- Member joined
- Member removed
- Role changed
- Project created
- API key generated
- Settings updated
Usage by Member
Track individual usage:- Requests made
- Tokens consumed
- Cost incurred
- API keys created
Usage tracking is per API key, not per user. If multiple users share an API key, usage is combined.
Collaboration Features
Shared Projects
All members can access organization projects:Shared Analytics
Team members can view:- Organization-wide metrics
- Per-project analytics
- Cost breakdowns
- Usage trends
Shared Playground
Team members can:- Test prompts collaboratively
- Share playground sessions
- Save and reuse prompts
- Compare model outputs
API Integration
Member Endpoints
Invitation Endpoints
Best Practices
Role Assignment
- Start restrictive - Assign viewer or member initially
- Promote as needed - Upgrade to admin when trust is established
- Limit owners - Keep only one owner when possible
- Regular audits - Review roles quarterly
Onboarding
- Send invitation with welcome message
- Provide documentation links
- Share relevant projects
- Set up 1-on-1 walkthrough
- Grant appropriate access level
Offboarding
- Remove from organization
- Revoke API keys if shared
- Update documentation access
- Archive their projects if needed
- Document handoff
Security
- Use least privilege principle
- Audit member list regularly
- Monitor for unusual activity
- Rotate shared credentials
- Enable 2FA for owners/admins
Team Limits
Free Plan
- 1 owner (automatic)
- No additional members
- Personal projects only
Pro Plan
- 1 owner
- Up to 10 members
- Unlimited viewers
- Shared projects
Enterprise Plan
- Custom member limits
- Advanced role customization
- SSO integration
- Audit logging
- Dedicated support
Audit Trail
Member Actions
All member management actions are logged:Viewing Audit Logs
Owners and admins can view:SSO Integration (Enterprise)
Enterprise plans support Single Sign-On:Supported Providers
- Google Workspace
- Microsoft Azure AD
- Okta
- Auth0
- SAML 2.0
Configuration
Auto-Provisioning
- Users from verified domain auto-join
- Assigned default role (configurable)
- No invitation needed
- Deprovisioning on SSO removal
Troubleshooting
Invitation Not Received
- Check spam folder
- Verify email address spelling
- Resend invitation
- Check invitation status in dashboard
Can’t Remove Member
- Ensure you’re an owner or admin
- Can’t remove yourself (transfer ownership first)
- Can’t remove the only owner
Permission Denied
- Verify your role has required permissions
- Check if organization is active
- Contact organization owner
- Review audit logs for role changes
Member Limit Reached
- Upgrade to higher plan
- Remove inactive members
- Contact sales for custom limits