kenya-jug/regression

Admin Support for Adding New Users in Regression

开放

#61 创建于 2025年5月21日

 (0 条评论) (0 个反应) (0 位负责人)Java (12 个派生)auto 404
CoreSecurityUIgood first issue

仓库指标

星标
 (7 个星标)
PR 合并指标
 (PR 指标待抓取)

描述

Implement functionality in Regression that allows admins to add new users to the system. This is a foundational feature for managing team access and permissions within the application.


Requirements:

  • Introduce an admin-only interface (UI/API) for adding users.

  • Capture necessary user information:

    • Username
    • Email
    • Role (e.g., admin, viewer, editor)
    • Optional: password setup or invite link
  • Ensure only users with admin role can access this functionality.

  • Validate inputs and handle duplicate emails/usernames.

  • Optionally send an email invite or notification upon user creation.


Acceptance Criteria:

  • Admins can successfully add new users via UI or API.
  • Role-based permissions are enforced.
  • New users can log in (after invite or password setup).
  • Appropriate validation and error messages are shown for invalid inputs.

Security Considerations:

  • Ensure secure handling of credentials (if password-based).
  • Log and audit user creation events for traceability.
  • Prevent privilege escalation or misuse of admin privileges.

Additional Notes:

  • Consider future support for:

    • User deactivation (requires separate issue)
    • Password resets (requires separate issue)
    • SSO or OAuth integration (requires separate issue)

贡献者指南