# DiscourseConnect SSO force avatar update programatically

**URL:** <https://meta.discourse.org/t/discourseconnect-sso-force-avatar-update-programatically/313829>\
**Category:** WordPress\
**Tags:** sso\
**Created:** [June 26, 2024, 4:07pm UTC](https://meta.discourse.org/t/discourseconnect-sso-force-avatar-update-programatically/313829 "2024-06-26T16:07:23Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![Shauny](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/shauny/32/362012_2.png) [@Shauny](https://meta.discourse.org/u/Shauny)\
**Post date:** [June 26, 2024, 4:07pm UTC](https://meta.discourse.org/t/discourseconnect-sso-force-avatar-update-programatically/313829/1 "2024-06-26T16:07:24Z")

</div>

I have this all set up and working so if someone changes their avatar on my WordPress site and then logs out of the forum and logs in again, it updates the avatar on Discourse.

But people don’t know to log out, and that’s quite annoying, so I’d like to trigger it myself. I have a hook that fires when someone updates their avatar. What can I add for it to send the new avatar to Discourse directly?

---

_[View the full topic](https://meta.discourse.org/t/discourseconnect-sso-force-avatar-update-programatically/313829)._
