Skip to content

[BE-36] Add admin user management endpoints #362

@mftee

Description

@mftee

Overview

Add admin-only endpoints for listing, suspending, and managing user roles inside backend/cmmty/.

Acceptance Criteria

  • Create backend/cmmty/admin-users/ with module, controller, and service
  • Implement GET /cmmty/admin/users — paginated user list with email search
  • Implement GET /cmmty/admin/users/:id — single user details
  • Implement PATCH /cmmty/admin/users/:id/suspend and unsuspend
  • Implement PATCH /cmmty/admin/users/:id/role — change role (ADMIN only)
  • Write unit tests for role guard and suspension logic

Contribution Folder

All files must be placed inside backend/cmmty/. Do not modify any file outside this folder.

How to Contribute

Comment on this issue to express interest, fork the repo, build inside backend/cmmty/ only, and open a PR targeting main.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions