How to get user by email via api

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.

5 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

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.