UI: Add user management admin page #41

Closed
opened 2026-03-14 12:38:43 +01:00 by claude · 1 comment
Owner

Context

Backend user admin API is implemented at /api/v1/admin/users (a4de2a7). Needs a UI page for ADMIN users to manage roles.

Requirements

  • New page at /admin/users (only visible to users with ADMIN role)
  • List all users: userId, provider, email, displayName, roles, createdAt
  • Edit roles: dropdown/multi-select to assign VIEWER, OPERATOR, ADMIN roles per user
  • Delete user button with confirmation
  • Decode the JWT on the frontend to check for ADMIN role and conditionally show the nav link

API Endpoints

  • GET /api/v1/admin/users — list all
  • GET /api/v1/admin/users/{userId} — get one
  • PUT /api/v1/admin/users/{userId}/roles — update roles { "roles": ["VIEWER", "OPERATOR"] }
  • DELETE /api/v1/admin/users/{userId} — remove user
## Context Backend user admin API is implemented at `/api/v1/admin/users` (a4de2a7). Needs a UI page for ADMIN users to manage roles. ## Requirements - New page at `/admin/users` (only visible to users with ADMIN role) - List all users: userId, provider, email, displayName, roles, createdAt - Edit roles: dropdown/multi-select to assign VIEWER, OPERATOR, ADMIN roles per user - Delete user button with confirmation - Decode the JWT on the frontend to check for ADMIN role and conditionally show the nav link ## API Endpoints - `GET /api/v1/admin/users` — list all - `GET /api/v1/admin/users/{userId}` — get one - `PUT /api/v1/admin/users/{userId}/roles` — update roles `{ "roles": ["VIEWER", "OPERATOR"] }` - `DELETE /api/v1/admin/users/{userId}` — remove user
Author
Owner

Implemented on feature/rbac-management branch. The RBAC management UI at /admin/rbac covers all original requirements and more:

  • Full RBAC page with Dashboard, Users, Groups, Roles tabs
  • User CRUD: create (with password), edit display name, delete, group/role assignment
  • Group CRUD: create, edit name/parent, delete, role assignment, hierarchy visualization
  • Role CRUD: create, edit, delete (system roles protected)
  • Inheritance computation and visualization

The original requirement for a simple user management page has been superseded by the full RBAC system.

Implemented on `feature/rbac-management` branch. The RBAC management UI at `/admin/rbac` covers all original requirements and more: - Full RBAC page with Dashboard, Users, Groups, Roles tabs - User CRUD: create (with password), edit display name, delete, group/role assignment - Group CRUD: create, edit name/parent, delete, role assignment, hierarchy visualization - Role CRUD: create, edit, delete (system roles protected) - Inheritance computation and visualization The original requirement for a simple user management page has been superseded by the full RBAC system.
Sign in to join this conversation.