# Getting user avatar from username

**URL:** https://meta.discourse.org/t/getting-user-avatar-from-username/81540
**Category:** Development
**Created:** [2월 26, 2018, 1:38오후 UTC](https://meta.discourse.org/t/getting-user-avatar-from-username/81540 "2018-02-26T13:38:15Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Bolarinwa\_Balogun](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/bolarinwa_balogun/32/138753_2.png) [@Bolarinwa\_Balogun](https://meta.discourse.org/u/Bolarinwa_Balogun)
#### Post date: [2월 26, 2018, 1:38오후 UTC](https://meta.discourse.org/t/getting-user-avatar-from-username/81540/1 "2018-02-26T13:38:15Z")

</div>

Hi,  
I am working on a plugin and I want to display the avatar of users. Is there a way to get a user avatar using their username?

---

<div class="post-metadata">

### Author: ![Mittineague](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mittineague/32/114259_2.png) [@Mittineague](https://meta.discourse.org/u/Mittineague)
#### Post date: [2월 26, 2018, 2:12오후 UTC](https://meta.discourse.org/t/getting-user-avatar-from-username/81540/2 "2018-02-26T14:12:34Z")

</div>

You could try making an XHR to the users page. eg.

[https://meta.discourse.org/u/bolarinwa\_balogun/summary.json](https://meta.discourse.org/u/bolarinwa_balogun/summary.json)

---

<div class="post-metadata">

### Author: ![Bolarinwa\_Balogun](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/bolarinwa_balogun/32/138753_2.png) [@Bolarinwa\_Balogun](https://meta.discourse.org/u/Bolarinwa_Balogun)
#### Post date: [2월 26, 2018, 9:38오후 UTC](https://meta.discourse.org/t/getting-user-avatar-from-username/81540/3 "2018-02-26T21:38:19Z")

</div>

is there is a way to get a user without using making a request? With categories, there is a find category.findBySlug() or category.findbyId(). Is there something like that for users?

Thank you.
