-
In Progress
| Type |
New Feature
|
| Priority |
Normal
|
| Assignee | |
| Version |
1.0
|
| Sprints |
n/a
|
| Customer |
n/a
|
Issue Votes (0)
| Type |
New Feature
|
| Priority |
Normal
|
| Assignee | |
| Version |
1.0
|
| Sprints |
n/a
|
| Customer |
n/a
|
Overview
Sztab currently allows full authentication and self-service profile updates, but there is no admin-facing UI or REST-endpoint layer to manage other users.
This issue introduces complete Admin User Management, enabling administrators to:
All operations will require the ADMIN role.
This is the foundation for onboarding developers, QA engineers, project managers, and other team members into Sztab.
Scope
1. Backend: REST Endpoints
Add new admin-only endpoints to
UserController:POST /api/users→ create a new userGET /api/users→ list all usersGET /api/users/{id}→ fetch user by IDPUT /api/users/{id}→ update user fieldsDELETE /api/users/{id}→ delete userDTOs required:
UserCreateDtoUserUpdateDtoUserDto(response)Business rules:
2. Backend: Service Layer
Extend
UserService:User createUser(UserCreateDto)List<User> getAllUsers()User updateUser(Long id, UserUpdateDto)void deleteUser(Long id)getCurrentUser,updateCurrentUser, etc.)Ensure:
3. Backend: Security Enforcement
All new endpoints must require:
Session-auth only (no impacts to JWT auth yet).
4. Unit + Integration Tests
Tests must validate:
5. OpenAPI / API Docs
Add complete API documentation:
This should appear automatically under Swagger UI.
6. README Update
Document the new Admin User Management API:
Acceptance Criteria
Estimate
6–8 hours, including testing and documentation.
Dependencies