# 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:** 3

<div class="post-metadata">

**Author:** ![Ashesh](https://avatars.discourse-cdn.com/v4/letter/a/c68b51/32.png) [@Ashesh](https://meta.discourse.org/u/Ashesh)\
**Post date:** [August 22, 2018, 8:55am UTC](https://meta.discourse.org/t/get-a-user-object-by-username-or-id-javascript/95342/3 "2018-08-22T08:55:09Z")

</div>

Thanks very much. I am trying to get a list of usersnames with certain custom field attributes. As you correctly pointed out, it will result in many additional calls from the API.

Is it possible to achieve what I intend more gracefully?

---

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