Hi, I am writing a widget for submitting tickets. My API needs to be able to find the users account, if it exists. It does this via the users email address they logged into my site with. So far I have found 2 approaches:
I can search for users using this endpoint, then filter for users with exact matching email address. This works great for users who have their email address set to public. However, this will not find users with private email addresses, even signed in as a site admin.
This somewhat works. It will find users by email, even if their email is private. However, it returns several results, and there is no way to know which one is the actual account with the email address.
How can I get a user by its email address as a site admin?