User Management
Admins create user accounts, change their role and activate or deactivate them from User Management (/dashboard/admin/users, Platform section of the sidebar). Managers and viewers do not see the page and the API answers 403.
Users Table
The page lists every account, 20 per page, sorted by username. The search box matches username, email, first name and last name. Each row shows:
- Username, with a "you" badge on your own account
- Email and full name
- Role: a selector with Admin, Manager and Viewer
- Status: Active or Inactive
- MFA: a check when two-factor authentication is enabled, "Off" otherwise
- Last login: relative time, or "Never"
- An action to deactivate or activate the account

Creating a User
Click "Create user" and fill in Username, Email and Password (required), First name and Last name (optional) and the Role (Viewer by default). The email must be unique and the password must pass the server password validators; errors are shown under the field. The creation is recorded in the audit log.
Changing a Role or Status
Pick a new role in the Role selector, or click the deactivate / activate action, and confirm the dialog. A role change ends the user's active sessions: they must sign in again. A deactivated user is signed out everywhere and can no longer log in; activating the account lets them log in again. Every change is recorded in the audit log (/docs/security/audit-logging).
- You cannot change your own role or deactivate your own account: ask another admin
- The last active admin cannot be demoted or deactivated (the API answers 400)
- Admin and manager accounts are also Django staff; only admins are Django superusers
Single Sign-On and Service Accounts
Users created by the single sign-on exchange appear in the table like the others. For Azure AD and Okta their role follows the identity provider groups at every login (/docs/teams/roles), so a role set here is overwritten at their next SSO login. Service accounts, the owners of API tokens (/docs/api/api-tokens), cannot sign in with a password.
API
All endpoints require an admin:
- GET /api/v1/auth/admin/users/ (paginated; search, ordering by username, email, role, date_joined, last_login)
- POST /api/v1/auth/admin/users/create/ with username, email, password, first_name, last_name, role
- GET / PATCH /api/v1/auth/admin/users/<id>/ (writable: role, is_active, first_name, last_name, job_title, department, phone)
curl -X PATCH -H "Authorization: Bearer $TOKEN" -H "Content-Type: application/json" \
-d '{"role": "manager"}' https://idp.example.com/api/v1/auth/admin/users/42/