Skip to content

Build Admin API module: RBAC, user & settings management, audit logs #346

Description

@devIKargi

Direction:
Implement an Admin API module to allow administrators to manage users, roles, and system settings via secure endpoints and role-based access control (RBAC).

Key responsibilities:

  • Endpoints: GET /admin/users, PATCH /admin/users/:id/role, POST /admin/settings, GET /admin/audit-logs.
  • RBAC implementation: roles (admin, moderator, support) with middleware enforcement.
  • Audit log recording for critical admin actions (who, when, what changed).
  • Tests ensuring non-admin users cannot access admin endpoints and that audit logs are recorded.

Acceptance criteria:

  • Admin endpoints implemented and protected by RBAC middleware.
  • Role changes update permissions immediately; critical actions produce audit log entries persisted to DB.
  • Tests validate access controls and audit logging behavior.
  • Documentation listing admin roles, permissions, and example admin workflows.

Metadata

Metadata

Assignees

Labels

GrantFox OSSIssue tracked in GrantFox OSSMaybe RewardedIssue may be eligible for a GrantFox rewardOfficial Campaign | FWC26Campaign: Official Campaign | FWC26enhancementNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions