How can I get a user by email, instead of username in the API?
1 Like
This: Discourse API Docs
/admin/users/list/{flag}.json?filter={email}
- flag:
active
,new
,staff
,suspended
,blocked
,suspect
- Using the
filter
query param with email value.
Iām not sure why the filter
param is not listed on the documentation though.
2 Likes
It lists only 100 users (seems like order of newly created ), If we have more than 100 users overall and user we want to fetch is not in list of those 100 users then this method is not capable of fetching results or I am missing something ?
Please suggest !
You can get other pages with &page=<number>
.
1 Like