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

<div class="post-metadata">

**Author:** ![Falco](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/falco/32/179432_2.png) [@Falco](https://meta.discourse.org/u/Falco)\
**Post date:** [September 29, 2019, 3:17am UTC](https://meta.discourse.org/t/get-a-user-object-by-username-or-id-javascript/95342/6 "2019-09-29T03:17:24Z")

</div>

Your plugin should be able to either update the username references when a username changes or add the necessary routes and serializers you need to fetch the data.

---

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