Is any way in API search users by email?
I make some kind of SSO feature for my site. Discourse SSO feature working good, but I want when user login on my main site he login on my discourse site too. I try to make it by API. But have a problem in search user by his email.
As I understand I cannot get email of user by API (I try this: /users/search/users.json and have no email in result)
And when I make this search: /admin/users/list/active.json
I receive resuls like this (no paging in results disapointed)
0 => stdClass#2 ( [id] => 100 [username] => 'xxx' ... [single_sign_on_record] => stdClass#3 ( [user_id] => 100 [external_email] => 'firstname.lastname@example.org' ... ) ) ... 99 => ...
P.S. Only 100 results? How to get other?
So in [single_sign_on_record] I can see user email.
The Question: Is any way to get single user by searching by his [external_email] or better by his [email]?
Thanks for all answers