Skip to content

User management ​

Users page screenshot

Overview ​

Lists users and supports search, client-side role/status filtering, status changes, delete, and navigation to create/edit/role pages.

  • Route: /users (protected)
  • Source: front/src/pages/UserManagement.tsx
  • Authorization: The page checks userManagement view/edit permissions with hasPermission; this is frontend gating, not evidence of backend authorization.

APIs and data flow ​

  • Initial mount and debounced search call GET /users?page=1&limit=1000&search=....
  • Role and status filters are applied locally.
  • Delete uses DELETE /users/:id.
  • Active/inactive toggles use PUT /users/:id.
  • Successful mutations reload the list.

States ​

Access-denied view, loading spinner, error with Retry, and filtered list are implemented. The page's exact empty-list message should be checked in its rendered table section.

Source: front/src/pages/UserManagement.tsx, front/src/services/api/userService.ts, front/src/utils/permissions.ts.

See Users API.