Users
Manage user accounts: list and inspect users, change roles and status, reset passwords, and delete accounts.
📄️ List users
Returns user accounts one page at a time, with role, status, number of GPS points, and linked OIDC providers.
📄️ Get a user
Returns a user's account details, including timezone, last GPS point time, linked OIDC providers, and whether a password is set.
📄️ Delete a user
Starts permanently deleting a user and all of their data, and returns at once. The user is locked out immediately: sessions, API tokens, GPS sources, shares and friendships are removed. The data is then deleted in the background; follow it with `GET /admin/users/{id}/deletion` or the `deletion` field of the user. Repeating the request returns the deletion in progress. Administrators cannot delete their own account or the last active administrator. This cannot be undone. The request is recorded in the audit log.
📄️ Get a user deletion
Returns the progress of a user's deletion. It stays available after the user is gone, with status `COMPLETED`.
📄️ Retry a user deletion
Starts a failed user deletion again where it stopped. The user stays locked out while the deletion is pending, including after it failed.
📄️ Reset a user's password
Replaces a user's password with a generated temporary password and returns it once. Give it to the user so they can sign in and change it. The reset is recorded in the audit log.
📄️ Change a user's role
Sets a user's role to `USER` or `ADMIN`. The last administrator cannot be demoted. The change is recorded in the audit log.
📄️ Enable or disable a user
Enables or disables a user account. Disabled users cannot sign in. Administrators cannot disable their own account. The change is recorded in the audit log.