|
| 1 | +--- |
| 2 | +title: "User Management" |
| 3 | +description: "Manage user accounts and configure your personal profile" |
| 4 | +weight: 5 |
| 5 | +tags: [ "configuration" ] |
| 6 | +--- |
| 7 | + |
| 8 | +Reitti provides a **User Management** page that lets administrators manage all accounts on the instance, while giving |
| 9 | +every user a place to edit their own profile and preferences. A single page at **Settings > User Management** renders |
| 10 | +two |
| 11 | +completely different views depending on your role: |
| 12 | + |
| 13 | +- **Admin users** see a table of all accounts with create, edit, and delete actions. |
| 14 | +- **Non-admin users** (and admins editing their own account) see their own profile form. |
| 15 | + |
| 16 | +### Roles and User Types |
| 17 | + |
| 18 | +Reitti distinguishes between the **role** of a user (what they are allowed to do) and the **user type** (how their |
| 19 | +location data is handled). |
| 20 | + |
| 21 | +| Role | Description | |
| 22 | +|----------------|---------------------------------------------------------------------------------| |
| 23 | +| **Admin** | Full access to all settings, including the ability to manage every user account | |
| 24 | +| **User** | A regular account that can edit its own profile and preferences | |
| 25 | +| **API Access** | An account intended for programmatic API access | |
| 26 | + |
| 27 | +| User Type | Description | |
| 28 | +|--------------------|------------------------------------------------------------------------------------------------------| |
| 29 | +| **Normal** | Retains the full location history, visits, places, and memories | |
| 30 | +| **Live Data Only** | Only tracks live location data and retains **no history** (visits, places, and memories are deleted) | |
| 31 | + |
| 32 | +### Admin User List |
| 33 | + |
| 34 | +Administrators are shown a table of all users with the following columns and actions: |
| 35 | + |
| 36 | +- **Username** — the login name of the account |
| 37 | +- **Display Name** — the name shown across the interface |
| 38 | +- **Role** — the account's role (`Admin`, `User`, or `API Access`) |
| 39 | +- **Actions** — per-row **Edit** and **Delete** buttons |
| 40 | + |
| 41 | +From this view an admin can: |
| 42 | + |
| 43 | +- **Add New User** — opens a blank profile form to create an account. This button is hidden when local login |
| 44 | + is disabled (see [Configuration](#configuration)). |
| 45 | +- **Edit** — opens the profile form for an existing user. |
| 46 | +- **Delete** — removes an account after a confirmation prompt. You cannot delete your own account. |
| 47 | + |
| 48 | +Feedback such as success or error messages is shown at the top of the list. If an admin changes their own username, a |
| 49 | +special banner prompts them to re-login. |
| 50 | + |
| 51 | + |
| 52 | + |
| 53 | +### Profile Form |
| 54 | + |
| 55 | +The profile form is shared between administrators editing any account and users editing their own profile. It contains |
| 56 | +the following sections: |
| 57 | + |
| 58 | +#### Identity |
| 59 | + |
| 60 | +- **Username** — required |
| 61 | +- **Display name** — required |
| 62 | +- **Password** — required when creating a user; on update, leave empty to keep the current password |
| 63 | + |
| 64 | +#### Role and User Type (admin only) |
| 65 | + |
| 66 | +- **Role** — `User` or `Admin` |
| 67 | +- **User Type** — `Normal` or `Live Data Only` (see [Switching User Type](#switching-user-type)) |
| 68 | + |
| 69 | +#### Profile Picture |
| 70 | + |
| 71 | +- Choose one of four bundled default avatars |
| 72 | +- Upload a custom image (up to 2 MB; JPEG, PNG, GIF, or WebP) |
| 73 | +- Remove the current avatar |
| 74 | + |
| 75 | +#### Custom CSS |
| 76 | + |
| 77 | +Upload your own stylesheet (up to 1 MB, must be a `.css` file) to personalize the interface, or remove an existing one. |
| 78 | + |
| 79 | +#### Preferences |
| 80 | + |
| 81 | +- **Preferred Language** — one of the supported languages |
| 82 | +- **Unit System** — `Metric` or `Imperial` |
| 83 | +- **Time Display Mode** — use the browser/override timezone (`Default`) or the timezone of the current location |
| 84 | + (`Geo Local`) |
| 85 | +- **Time Format** — 12-hour or 24-hour clock |
| 86 | +- **Timezone Override** — a specific timezone, or empty to use the browser timezone |
| 87 | +- **Color Theme** — a preset color or a custom value |
| 88 | +- **Home Location** — latitude/longitude with an interactive map and draggable marker |
| 89 | + |
| 90 | +### Creating a User |
| 91 | + |
| 92 | +Creating a user (admin only) requires a username, display name, and password. Reitti then automatically provisions a |
| 93 | +complete set of defaults for the new account: |
| 94 | + |
| 95 | +- Personal settings (language, unit system, home location, time modes, color) |
| 96 | +- A default map style |
| 97 | +- A default device and API token |
| 98 | +- Default visit and transport detection parameters (skipped for `Live Data Only` accounts) |
| 99 | + |
| 100 | +### Updating a User |
| 101 | + |
| 102 | +An admin can edit any account, while a regular user can only edit their own. When updating: |
| 103 | + |
| 104 | +- Blank username and display name fall back to the existing values |
| 105 | +- The password is only changed when a new one is provided |
| 106 | +- The selected language, unit system, home location, timezone, time modes, color, avatar, and custom CSS are applied |
| 107 | +- If a user changes their own username, they are asked to re-login |
| 108 | + |
| 109 | +Updates use optimistic locking, so if two people edit the same account at once, the later save fails with a conflict |
| 110 | +instead of silently overwriting the earlier change. |
| 111 | + |
| 112 | +### Switching User Type |
| 113 | + |
| 114 | +When an admin changes an account between `Normal` and `Live Data Only`, Reitti performs the necessary data migrations: |
| 115 | + |
| 116 | +- **Normal → Live Data Only**: requires typing the exact username in a confirmation modal, then permanently deletes all |
| 117 | + history (visits, trips, places, and memories). |
| 118 | +- **Live Data Only → Normal**: recreates the default detection parameters for the account. |
| 119 | + |
| 120 | +Without confirming the modal, a `Normal → Live Data Only` change is ignored and the account stays `Normal`. |
| 121 | + |
| 122 | +### Deleting a User |
| 123 | + |
| 124 | +Deleting a user (admin only, never your own account) permanently removes the account and cascades to all associated |
| 125 | +data, including detection parameters, settings, geocoding responses, visits, places, raw location points, API tokens, |
| 126 | +MQTT integrations, map styles, devices, and the avatar. |
| 127 | + |
| 128 | +### OIDC-Managed Accounts |
| 129 | + |
| 130 | +When an account is managed by an external OpenID Connect provider (see [OpenID Connect](../infrastructure/oidc.md)), the |
| 131 | +profile form adapts: |
| 132 | + |
| 133 | +- **Username** and **display name** inputs are disabled — they are synchronized from the provider. |
| 134 | +- The **password** field is hidden when local login is disabled. |
| 135 | +- The **avatar** section is replaced with a notice that the avatar is managed by the provider and updated automatically. |
| 136 | +- An information banner shows a **"View external profile"** link to the provider's profile page. |
| 137 | + |
| 138 | +These fields can never be overwritten by the form; they are always preserved from the provider's data. For details on |
| 139 | +how OIDC users are created and matched, refer to the [OpenID Connect](../infrastructure/oidc.md) documentation. |
| 140 | + |
| 141 | +### Best Practices |
| 142 | + |
| 143 | +- **Use `Normal` for full-feature accounts**: It retains history, visits, places, and memories. Reserve `Live Data Only` |
| 144 | + for accounts that only need live tracking. |
| 145 | +- **Confirm before switching to `Live Data Only`**: The transition permanently deletes all history and cannot be undone. |
| 146 | +- **Disable local login for OIDC-only environments**: Set `local-login.disable` to enforce authentication through your |
| 147 | + provider and hide the password fields. |
| 148 | +- **Never delete your own account**: Self-deletion is blocked to avoid locking yourself out of the instance. |
0 commit comments