# Updating mentions when username is changed via SSO

**URL:** https://meta.discourse.org/t/updating-mentions-when-username-is-changed-via-sso/202992
**Category:** Bug
**Created:** [September 8, 2021, 5:08pm UTC](https://meta.discourse.org/t/updating-mentions-when-username-is-changed-via-sso/202992 "2021-09-08T17:08:38Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![JonathanShaw](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jonathanshaw/32/532672_2.png) [@JonathanShaw](https://meta.discourse.org/u/JonathanShaw)
#### Post date: [September 8, 2021, 5:08pm UTC](https://meta.discourse.org/t/updating-mentions-when-username-is-changed-via-sso/202992/1 "2021-09-08T17:08:38Z")

</div>

According to @simon in [Update quotes and mentions when username is changed](https://meta.discourse.org/t/update-quotes-and-mentions-when-username-is-changed/39836)

> when a username is changed, quotes and mentions are now automatically updated. Changing a username will not break quotes and mentions.

I’m finding that when a username is changed by SSO, then this doesn’t happen. Which would seem to be a bug.

---

<div class="post-metadata">

### Author: ![andrei](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/andrei/32/205142_2.png) [@andrei](https://meta.discourse.org/u/andrei)
#### Post date: [December 7, 2021, 8:44pm UTC](https://meta.discourse.org/t/updating-mentions-when-username-is-changed-via-sso/202992/3 "2021-12-07T20:44:23Z")

</div>

This PR fixes the problem. After changing username by SSO mentions and quotes will be updated automatically:

[https://github.com/discourse/discourse/pull/14637](https://github.com/discourse/discourse/pull/14637)

---

<div class="post-metadata">

### Author: ![JonathanShaw](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jonathanshaw/32/532672_2.png) [@JonathanShaw](https://meta.discourse.org/u/JonathanShaw)
#### Post date: [December 8, 2021, 11:44am UTC](https://meta.discourse.org/t/updating-mentions-when-username-is-changed-via-sso/202992/4 "2021-12-08T11:44:34Z")

</div>

Great, thanks @andrei

---

<div class="post-metadata">

### Author: ![david](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/david/32/157490_2.png) [@david](https://meta.discourse.org/u/david)
#### Post date: [December 9, 2021, 8:00am UTC](https://meta.discourse.org/t/updating-mentions-when-username-is-changed-via-sso/202992/5 "2021-12-09T08:00:22Z")

</div>

This topic was automatically closed after 19 hours. New replies are no longer allowed.
