# Get a user object by username or id javascript

**URL:** https://meta.discourse.org/t/get-a-user-object-by-username-or-id-javascript/95342
**Category:** Development
**Created:** [August 21, 2018, 7:03pm UTC](https://meta.discourse.org/t/get-a-user-object-by-username-or-id-javascript/95342 "2018-08-21T19:03:43Z")
**Posts on this page:** 1
**Showing post:** 4

<div class="post-metadata">

### Author: ![david](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/david/32/157490_2.png) [@david](https://meta.discourse.org/u/david)
#### Post date: [August 22, 2018, 9:37am UTC](https://meta.discourse.org/t/get-a-user-object-by-username-or-id-javascript/95342/4 "2018-08-22T09:37:21Z")

</div>

If this is just for administrators, you might be able to utilise the [data-explorer plugin](https://meta.discourse.org/t/data-explorer-plugin/32566). If you wanted this to work for all users, you would probably need to create a plugin which adds a new HTTP endpoint.

---

_[View the full topic](https://meta.discourse.org/t/get-a-user-object-by-username-or-id-javascript/95342)._
