Skip to content

Can’t reuse username or email after deleting a user? #320

@dhanush-ninja

Description

@dhanush-ninja

Steps I did:

  1. Deleted a user using:

    DELETE {{url}}:9002/users/{User id}
    
  2. Tried to create a new user with the same username/email → request failed (username/email still reserved).

  3. Also called the GET user API:

    GET {{url}}:9002/users/{Deleted User id}
    
    • Response still returns the user object.
    • Field "status": "deleted" is present.
  4. Checked the user list in User Management page → the deleted user is not listed.

  5. Opened the deleted user’s details page directly:

    localhost:3000/en/platform-management/users/{Deleted User id}
    
    • The deleted user’s details are still visible.
    • The status shows as unknown.
    • If I toggle enable/disable, the user gets re-activated and reappears in the list.

My Question:

  • Is this the expected behavior (soft delete)?
  • Should deleted users block reusing their username/email?
  • If not, is there a way to completely remove a user (hard delete) so the username/email can be reused?

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

Status

⛏ Backlog

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions