Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

/v1/users returns a 200 status code for unknown users #458

Open
poisa opened this issue Mar 2, 2022 · 0 comments
Open

/v1/users returns a 200 status code for unknown users #458

poisa opened this issue Mar 2, 2022 · 0 comments

Comments

@poisa
Copy link

poisa commented Mar 2, 2022

Hi!

I'm calling the GET users endpoint and searching by email (https://harvest.greenhouse.io/v1/users?email=). What I'm getting is not consistent from this endpoint.

  1. If I look for my own email address I get a 200 and my user record is returned. I expected this.
  2. If I look for [email protected] I get a 403. I expected this as well since this account does not exist.
  3. If I look for [email protected] I get a 200 with an empty array [] as the body. I did not expect this because this account also doesn't exist.

There are MANY bogus addresses that return a 200 and this is what's breaking reliability on this endpoint. For example, searching by all these addresses return a 200 with [] as the body:

There is another case where a a 200 with [] as the body is returned. In my company we have Gmail accounts that are aliased to another domain. So for example, we have [email protected] and those are aliased to [email protected]. If a Greenhouse user is registered and has both aliases set for their email address, then it all works fine. However, if a user only has the primary email address assigned and you search for them using the alias, a 200 with [] as the body is returned.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant