Użytkownicy i dostęp
Użytkownicy i grupy uprawnień — zarządzaj tym, kto co widzi i może robić.
Ta dokumentacja jest generowana ze schematu API. Opisy pól oraz wszelkie teksty, które nie zostały jeszcze przetłumaczone, są wyświetlane po angielsku.
Użytkownik
Endpoints
| Metoda | Ścieżka | Opis |
|---|---|---|
| GET | /users/{id} | Collect single User |
| PATCH | /users/{id} | Update User |
| GET | /users/{id}/avatar | Read uploaded user profile picture |
| POST | /users/activation/{token} | User account activation |
| POST | /users/create | Create User only account |
| GET | /users/me | Collect currently authenticated User |
| POST | /users/me/avatar | Upload current user profile picture |
| POST | /users/me/avatar/source | Choose where the current user's avatar comes from |
| POST | /users/password-reset | First step of resetting user password |
| POST | /users/password-setup/{token} | Second step of resetting user password |
| POST | /users/register | Create User and Organization account |
Pola schematu
| Pole | Typ | Opis |
|---|---|---|
| id | integer | |
| email* | string,null (email) | |
| firstname* | string | |
| lastname* | string | |
| interestedInModules | arraynull | |
| avatarUrl | stringnull | Setting an actual avatar un-suppresses, because holding both would be the impossible state: a picture to show and an instruction to show initials instead. Clearing it to `null` deliberately does NOT touch the flag — "no avatar" is exactly the state a suppressed user is in, so clearing must not silently cancel their choice. |
| avatarSuppressed | boolean | The user asked to be shown as initials, and means it across sign-ins. |
| hasUploadedAvatar | boolean |
Grupa uprawnień
Endpoints
| Metoda | Ścieżka | Opis |
|---|---|---|
| GET | /permission-groups | Pobiera kolekcję zasobów PermissionGroup. |
| POST | /permission-groups | Tworzy zasób PermissionGroup. |
| GET | /permission-groups/{id} | Pobiera zasób PermissionGroup. |
| PATCH | /permission-groups/{id} | Aktualizuje zasób PermissionGroup. |
| DELETE | /permission-groups/{id} | Usuwa zasób PermissionGroup. |
Pola schematu
| Pole | Typ | Opis |
|---|---|---|
| id | integer | |
| code | stringnull | Stable code for default seed groups; null for org-created custom groups. |
| name* | string | |
| description | stringnull | |
| roles | array | ROLE_* string values |
| employees | array | |
| createdAt | string (date-time) | |
| updatedAt | string (date-time) | |
| deletedAt | string,null (date-time) | |
| userCount | integer | Convenience for tests / migration. |
| deleted | boolean | Check if the entity has been soft deleted. |