MIKE-05: User Administration - admin-only user management
From the PR description
MIKE-05: User Administration
Add admin-only user management to Mike: list users, create/invite, change roles, disable/enable, reset password, revoke sessions, audit log.
Changes
- Migration:
user_profilesgainsrole,status,last_login_at,created_by,disabled_at,disabled_by; newadmin_audit_logtable - Backend:
requireAdminmiddleware;/admin/usersCRUD endpoints - Frontend: Settings > User Administration page (admin-only tab); public signup page replaced with redirect
- Tests: 5 new tests for
requireAdminmiddleware
Endpoints
GET /admin/users- list all usersPOST /admin/users- create user with temp passwordPATCH /admin/users/:id/role- change rolePATCH /admin/users/:id/disable- disable userPATCH /admin/users/:id/enable- enable userPOST /admin/users/:id/reset-password- reset passwordPOST /admin/users/:id/revoke-sessions- revoke sessionsGET /admin/users/:id/audit- audit log
Acceptance
- 245 tests green (160 backend + 85 frontend)
- Typecheck OK
- Lint OK
- Builds OK
Our analysis
Add administrator-managed user accounts — read the full analysis →
Think the analysis missed something the PR description covers?
Capture this PR into my fork
Download a Markdown prompt that tells Claude how to port every
commit in this PR into your working tree. Run it via
claude -p < capture-pull-13.md from
inside the repo you want the changes in.