Bug: searching users by blank email gives back a user with an email | Community
Skip to main content

Bug: searching users by blank email gives back a user with an email

  • June 5, 2024
  • 3 replies
  • 0 views

In our test environment we noticed that when calling GET /api/v2/users/search?query=email: (that is to say, with a blank email) it returns a user with an email. 

This doesn't seem intentional, I would expect a 400 error (or a list of users with no email, although I imagine it'd be better to have that functionality under a more explicit search string such as email:null or something).

3 replies

Tomas15
  • June 9, 2024

did you try with “-email:*”?? 


Enrique17
  • October 15, 2024

@parker11 did you find a solution? thx


Enrique17
  • October 15, 2024

finally I get it: -email:none