# Use the API to find a username based on an email?

**URL:** <https://meta.discourse.org/t/use-the-api-to-find-a-username-based-on-an-email/45424>\
**Category:** Development\
**Tags:** rest-api\
**Created:** [08.Июнь.2016 09:50:22 UTC](https://meta.discourse.org/t/use-the-api-to-find-a-username-based-on-an-email/45424 "2016-06-08T09:50:22Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)\
**Post date:** [09.Ноябрь.2017 06:10:21 UTC](https://meta.discourse.org/t/use-the-api-to-find-a-username-based-on-an-email/45424/6 "2017-11-09T06:10:21Z")

</div>

Per:

[https://github.com/discourse/discourse/commit/06365023c4f215bb6867efe7e41bf740c919586b](https://github.com/discourse/discourse/commit/06365023c4f215bb6867efe7e41bf740c919586b)

If you are searching by email use:

```plaintext
SITENAME.com/admin/users/list/all.json?email=some@email.com

```

Using filter is inefficient and not recommended for this use case!

---

_[View the full topic](https://meta.discourse.org/t/use-the-api-to-find-a-username-based-on-an-email/45424)._
