Skip to content

Deactivate and Reactivate admin accounts (Stretch) #319

@SamNie2027

Description

@SamNie2027

Summary
Implement the ability to deactivate and reactivate admin accounts. This ensures that users who no longer hold admin roles do not retain access, while allowing accounts to be restored when needed.

Currently, there is no way to revoke admin access, which poses a risk when roles change. This feature ensures proper access control and account lifecycle management while working within the existing Cognito-based authentication setup.


Acceptance Criteria

  • Admins can deactivate their own accounts
  • Deactivated admins can no longer log in
  • Deactivation is implemented using Cognito-compatible flows (frontend-triggered where applicable)
  • Deactivated admins can regain access through a verified email-based flow (Cognito)
  • System maintains integrity of existing data associated with deactivated admins
  • Remember to update tests on the backend. Frontend tests are optional.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

Status
In Progress

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions