User Management¶
Manage user accounts, roles, and site assignments from the Admin Panel.
Location: Admin Panel → User Management (/admin/users)
User List¶
The user management page shows all registered users with:
| Column | Description |
|---|---|
| User's email address | |
| Display Name | Full name (if provided during registration) |
| Role | user or admin |
| Sites | Number of assigned sites |
| Joined | Registration date |
Statistics¶
The page header shows:
- Total Users — All registered accounts
- Admins — Users with admin role
- Regular Users — Non-admin users
Promoting / Demoting Users¶
Promote to Admin¶
- Find the user in the list
- Click "Promote to Admin"
- Confirm the action
- User immediately gains admin privileges
Demote to User¶
- Find the admin user in the list
- Click "Demote to User"
- Confirm the action
- User loses admin privileges immediately
Self-demotion
You cannot demote yourself — this prevents accidentally locking all admins out.
Note
Users must log out and log back in to see role changes reflected in their UI.
Site Assignment¶
Control which sites a user can access.
Assign a Site¶
- Find the user in the list
- Click "Manage Sites"
- View currently assigned sites and available sites
- Click "Assign" next to an available site
- The user can now access that site's machines and data
Remove a Site¶
- Click "Manage Sites" for the user
- Click the X icon next to an assigned site
- The user loses access to that site immediately
Access Rules¶
| Role | Site Access |
|---|---|
| User | Only sites in their sites array |
| Admin | All sites (regardless of assignment) |
| Agent | Single site (from OAuth token claims) |
Best Practices¶
- Principle of least privilege — Only grant admin to users who need it
- Audit regularly — Review who has admin access periodically
- Site-based organization — Assign users to sites matching their responsibility (e.g., NYC office staff only see NYC machines)
- Redundancy — Keep at least 2 admin accounts to prevent lockout