Activate/deactivate a user
Deactivation also revokes live sessions.
Not available to personal access tokens; call it from a signed-in session.
bearerAuthorizationBearer <token>A session token or a personal access token. Leave it empty when the instance runs without authentication (AUTH_TYPE unset).
user_id*stringSuccess
curl -X PATCH 'http://localhost:7091/api/admin/users/string'List users, paginated, most-recently-seen first GET
Each row carries `last_seen` (max auth-event time) and the stored `email` (null when none is on file); `?user_id=` matches either. Admin status is intentionally not joined here; the dashboard cross-references GET /api/admin/admins for badges. Not available to [personal access tokens](/API/personal-access-tokens); call it from a signed-in session.
Grant the admin role to ``user_id`` (manual source) POST
Idempotent. Not available to [personal access tokens](/API/personal-access-tokens); call it from a signed-in session.