# Usernames getting modified – numeral “1” being added

**URL:** https://meta.discourse.org/t/usernames-getting-modified-numeral-1-being-added/169431
**Category:** Support
**Created:** [November 6, 2020, 2:01pm UTC](https://meta.discourse.org/t/usernames-getting-modified-numeral-1-being-added/169431 "2020-11-06T14:01:50Z")
**Posts on this page:** 8
**Page:** 1

<div class="post-metadata">

### Author: ![Christian\_Suntay](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/christian_suntay/32/199290_2.png) [@Christian\_Suntay](https://meta.discourse.org/u/Christian_Suntay)
#### Post date: [November 6, 2020, 2:01pm UTC](https://meta.discourse.org/t/usernames-getting-modified-numeral-1-being-added/169431/1 "2020-11-06T14:01:50Z")

</div>

So i have the same problem from this topic [Usernames getting modified – numeral "1" being added](https://meta.discourse.org/t/usernames-getting-modified-numeral-1-being-added/96982)

but the thing is the additional “1” is being on/off as you logged in/out and for those usernames with 1 already at the end of the username will be iterated to 2.

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [November 6, 2020, 6:19pm UTC](https://meta.discourse.org/t/usernames-getting-modified-numeral-1-being-added/169431/2 "2020-11-06T18:19:54Z")

</div>

Are you using SSO? This implies the usernames are already taken at the time of “signup”.

---

<div class="post-metadata">

### Author: ![Christian\_Suntay](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/christian_suntay/32/199290_2.png) [@Christian\_Suntay](https://meta.discourse.org/u/Christian_Suntay)
#### Post date: [November 6, 2020, 6:55pm UTC](https://meta.discourse.org/t/usernames-getting-modified-numeral-1-being-added/169431/3 "2020-11-06T18:55:13Z")

</div>

yes we are using SSO. but we are using the same email when using the SSO and the username in discourse will have “1” or being iterated if there is already a 1 in their username. In above attached thread it was a bug and was fixed. Maybe it happened again?

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [November 6, 2020, 7:23pm UTC](https://meta.discourse.org/t/usernames-getting-modified-numeral-1-being-added/169431/4 "2020-11-06T19:23:30Z")

</div>

It’s more likely something is wrong with your SSO implementation – it sounds like “log me in again as user X!” is instead coming across as “create me as a new user with the name X!” so I suggest double and triple checking the SSO documentation and your implementation of it.

You can also turn on verbose SSO logging in your site settings as I recall.

---

<div class="post-metadata">

### Author: ![Falco](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/falco/32/179432_2.png) [@Falco](https://meta.discourse.org/u/Falco)
#### Post date: [November 6, 2020, 7:36pm UTC](https://meta.discourse.org/t/usernames-getting-modified-numeral-1-being-added/169431/5 "2020-11-06T19:36:31Z")

</div>

After enabling SSO verbose logs, pay attention to the `external_id` you are sending Discourse. That value must be

> [@Setup DiscourseConnect - Official Single-Sign-On for Discourse (sso)](https://meta.discourse.org/t/setup-discourseconnect-official-single-sign-on-for-discourse-sso/13045/1):
>
> any string unique to the user that will never change, even if their email, name, etc change

---

<div class="post-metadata">

### Author: ![Christian\_Suntay](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/christian_suntay/32/199290_2.png) [@Christian\_Suntay](https://meta.discourse.org/u/Christian_Suntay)
#### Post date: [November 9, 2020, 11:41am UTC](https://meta.discourse.org/t/usernames-getting-modified-numeral-1-being-added/169431/6 "2020-11-09T11:41:33Z")

</div>

> [@Falco](#):
>
> external\_id

the problem now is when I logged in for the first time it will have “1” but when I relogged in. it was gone and back to original. It is like an on / off switch whenever I tried to logged in.

---

<div class="post-metadata">

### Author: ![Falco](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/falco/32/179432_2.png) [@Falco](https://meta.discourse.org/u/Falco)
#### Post date: [November 9, 2020, 12:21pm UTC](https://meta.discourse.org/t/usernames-getting-modified-numeral-1-being-added/169431/7 "2020-11-09T12:21:25Z")

</div>

That means the your webservice that implements the SSO protocol is flaky.

Enable verbose logs so you can track the bug on it.

---

<div class="post-metadata">

### Author: ![system](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/system/32/443519_2.png) [@system](https://meta.discourse.org/u/system)
#### Post date: [December 9, 2020, 12:25pm UTC](https://meta.discourse.org/t/usernames-getting-modified-numeral-1-being-added/169431/8 "2020-12-09T12:25:50Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
