# Update user avatar using a URL

**URL:** https://meta.discourse.org/t/update-user-avatar-using-a-url/276188
**Category:** SSO
**Tags:** rest-api
**Created:** [August 22, 2023, 1:57pm UTC](https://meta.discourse.org/t/update-user-avatar-using-a-url/276188 "2023-08-22T13:57:56Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Mohammad\_Ghandour](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mohammad_ghandour/32/322040_2.png) [@Mohammad\_Ghandour](https://meta.discourse.org/u/Mohammad_Ghandour)
#### Post date: [August 22, 2023, 1:57pm UTC](https://meta.discourse.org/t/update-user-avatar-using-a-url/276188/1 "2023-08-22T13:57:56Z")

</div>

Hello, I’m using SSO to login/signup users from my website to the discourse forum.

During the signup I’m sending some data in the payload (username, external\_id, avatar **as URL** , etc…). So far so good and the user’s avatar on discourse are showing the same as my webstie.

Now when a user updates his avatar on my website, it basically updates the avatar in the database to be a new URL string. How can I update the avatar on discourse as well to match the new avatar ?

Thanks in advance !

---

<div class="post-metadata">

### Author: ![JammyDodger](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jammydodger/32/254611_2.png) [@JammyDodger](https://meta.discourse.org/u/JammyDodger)
#### Post date: [August 30, 2023, 8:43am UTC](https://meta.discourse.org/t/update-user-avatar-using-a-url/276188/2 "2023-08-30T08:43:20Z")

</div>

There’s a `discourse connect overrides avatar` admin setting if you’re able to use that method:

 ![discourse connect overrides avatar](https://global.discourse-cdn.com/meta/original/4X/7/2/0/7208d12ef5454cf7f920541119e28f9d06c90b78.png)

---

<div class="post-metadata">

### Author: ![Mohammad\_Ghandour](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mohammad_ghandour/32/322040_2.png) [@Mohammad\_Ghandour](https://meta.discourse.org/u/Mohammad_Ghandour)
#### Post date: [September 12, 2023, 9:58am UTC](https://meta.discourse.org/t/update-user-avatar-using-a-url/276188/3 "2023-09-12T09:58:31Z")

</div>

Okay thank you that worked
