# How do I get a list of all users from the API?

**URL:** <https://meta.discourse.org/t/how-do-i-get-a-list-of-all-users-from-the-api/24261>\
**Category:** Development\
**Tags:** rest-api\
**Created:** [2015年一月21日 09:34 UTC](https://meta.discourse.org/t/how-do-i-get-a-list-of-all-users-from-the-api/24261 "2015-01-21T09:34:11Z")\
**Posts on this page:** 1\
**Showing post:** 13

<div class="post-metadata">

**Author:** ![ryancey](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/ryancey/32/99309_2.png) [@ryancey](https://meta.discourse.org/u/ryancey)\
**Post date:** [2019年四月11日 16:28 UTC](https://meta.discourse.org/t/how-do-i-get-a-list-of-all-users-from-the-api/24261/13 "2019-04-11T16:28:47Z")

</div>

Sorry the reply so late but that’s the first search result for “get list of all users discourse”…

You can implement **read-only** endpoints with the [Data Explorer](https://meta.discourse.org/t/data-explorer-plugin/32566) plugin.

- Install the plugin
- Create your query, with inputs if needed
- Issue a POST request on `/admin/plugins/explorer/queries/[id]/run` (with `[id]` being your query ID)

You can also implement paging with limit/offset inputs I guess, but never tried.

For example, I’m using it to check if a given OAuth user ID is already registered on my instance through [discourse-oauth2-basic](https://github.com/discourse/discourse-oauth2-basic).

---

_[View the full topic](https://meta.discourse.org/t/how-do-i-get-a-list-of-all-users-from-the-api/24261)._
