Skip to main content

Check if user is disabled

GET 

/company/users/disabled/check

Check if a user is disabled (soft deleted) by searching via email.
Useful for verifying if an email can be reused.

Objective

Facilitate the verification of disabled user status to determine if an email is available for reuse or if a user can be reactivated.

Use Cases

  • Verify if an email is already in use by a disabled user
  • Decide whether an existing user can be reactivated
  • Prevent duplicates when creating new users

Authentication & Authorization

  • Requires a valid JWT (middleware m.isloged)
  • Requires admin or dev role (middleware m.isAdmin)

Behavior

  • Uses model.findOneDeleted() to include deleted users
  • Searches by email (query parameter required)
  • Returns information about the user's status

Notes

  • This endpoint searches for disabled users (deleted=true)
  • Useful for deciding whether to reactivate or create a new user

Request

Responses

Verification completed