# Usernames getting modified – numeral "1" being added

**URL:** https://meta.discourse.org/t/usernames-getting-modified-numeral-1-being-added/96982
**Category:** SSO
**Created:** [11 בספטמבר,‏ 2018,‏ 7:55pm UTC](https://meta.discourse.org/t/usernames-getting-modified-numeral-1-being-added/96982 "2018-09-11T19:55:02Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![tnorthcutt](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tnorthcutt/32/104102_2.png) [@tnorthcutt](https://meta.discourse.org/u/tnorthcutt)
#### Post date: [11 בספטמבר,‏ 2018,‏ 7:55pm UTC](https://meta.discourse.org/t/usernames-getting-modified-numeral-1-being-added/96982/1 "2018-09-11T19:55:02Z")

</div>

I run a Discourse instance and WordPress site, using the [Discourse SSO](https://meta.discourse.org/t/13045?silent=true) plugin (which is _awesome_).

Recently, two (out of 50+) had `1` appended to their usernames in Discourse. Their usernames on the WordPress site remains unchanged.

I tried to manually edit their usernames back in Discourse, but encountered the error message `Username must be unique`. However, the username (without the `1` appended) _is_ unique.

Is this a known issue? Is there a workaround for this problem?

Happy to provide whatever other info would be useful for debugging.

---

<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: [11 בספטמבר,‏ 2018,‏ 8:00pm UTC](https://meta.discourse.org/t/usernames-getting-modified-numeral-1-being-added/96982/2 "2018-09-11T20:00:10Z")

</div>

> [@tnorthcutt](#):
>
> However, the username (without the `1` appended) _is_ unique.

Do you have any groups with names equal to the usernames? Group names and usernames share the same namespace

---

<div class="post-metadata">

### Author: ![tnorthcutt](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tnorthcutt/32/104102_2.png) [@tnorthcutt](https://meta.discourse.org/u/tnorthcutt)
#### Post date: [11 בספטמבר,‏ 2018,‏ 8:03pm UTC](https://meta.discourse.org/t/usernames-getting-modified-numeral-1-being-added/96982/3 "2018-09-11T20:03:40Z")

</div>

Ah, yes!

So will Discourse let you create a group with the name of an existing user, and append `1` to the username, rather than saying “Sorry, you can’t use that group name” when attempting to create the group?

---

<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: [11 בספטמבר,‏ 2018,‏ 8:09pm UTC](https://meta.discourse.org/t/usernames-getting-modified-numeral-1-being-added/96982/4 "2018-09-11T20:09:15Z")

</div>

> [@tnorthcutt](#):
>
> will Discourse let you create a group with the name of an existing user, and append `1` to the username

No, you will get “Group name is not available”.

We had a bug with the validation a few months ago, which might be why you ended up with this situation. The bug is now fixed, so it shouldn’t happen in the future.

---

<div class="post-metadata">

### Author: ![tnorthcutt](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tnorthcutt/32/104102_2.png) [@tnorthcutt](https://meta.discourse.org/u/tnorthcutt)
#### Post date: [11 בספטמבר,‏ 2018,‏ 8:22pm UTC](https://meta.discourse.org/t/usernames-getting-modified-numeral-1-being-added/96982/5 "2018-09-11T20:22:02Z")

</div>

Cool, thank you @david

---

<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: [12 בספטמבר,‏ 2018,‏ 5:00pm UTC](https://meta.discourse.org/t/usernames-getting-modified-numeral-1-being-added/96982/6 "2018-09-12T17:00:00Z")

</div>

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