# Can Username Change be limited to number of times?

**URL:** https://meta.discourse.org/t/can-username-change-be-limited-to-number-of-times/115709
**Category:** Support
**Created:** [April 23, 2019, 11:47am UTC](https://meta.discourse.org/t/can-username-change-be-limited-to-number-of-times/115709 "2019-04-23T11:47:06Z")
**Posts on this page:** 12
**Page:** 1

<div class="post-metadata">

### Author: ![Edward\_D\_Avignon](https://avatars.discourse-cdn.com/v4/letter/e/ba9def/32.png) [@Edward\_D\_Avignon](https://meta.discourse.org/u/Edward_D_Avignon)
#### Post date: [April 23, 2019, 11:47am UTC](https://meta.discourse.org/t/can-username-change-be-limited-to-number-of-times/115709/1 "2019-04-23T11:47:06Z")

</div>

Hi,

We recently started using Discourse with thousands of users imported. Is there a way to enable Username Change so that the user can only make a change a specified number of times instead of nuber of days past registration?

I would like to give users the ability to change their username say 2 times before they must contact an admin to make the change.

---

<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: [April 23, 2019, 12:03pm UTC](https://meta.discourse.org/t/can-username-change-be-limited-to-number-of-times/115709/2 "2019-04-23T12:03:06Z")

</div>

No, this is not possible at the moment. It could possibly be achieved using a plugin.

---

<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: [April 24, 2019, 2:35am UTC](https://meta.discourse.org/t/can-username-change-be-limited-to-number-of-times/115709/3 "2019-04-24T02:35:34Z")

</div>

In Discourse by default, username changes are only allowed for accounts of 3 days old or less. Have you modified this default setting? If so, why?

---

<div class="post-metadata">

### Author: ![Edward\_D\_Avignon](https://avatars.discourse-cdn.com/v4/letter/e/ba9def/32.png) [@Edward\_D\_Avignon](https://meta.discourse.org/u/Edward_D_Avignon)
#### Post date: [April 24, 2019, 3:33am UTC](https://meta.discourse.org/t/can-username-change-be-limited-to-number-of-times/115709/4 "2019-04-24T03:33:08Z")

</div>

We have a very large user base that was imported into Discourse. Most will not log on within 3 days of their Discourse IDs being created (it was more than 3 days before Discourse went into production). Their user names were created from this import. Our support staff does not have the time to field legitimate change requests that come in after the 3 day window so the decision was made to allow users to change their own IDs after more than 3 days.

---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [April 24, 2019, 3:54am UTC](https://meta.discourse.org/t/can-username-change-be-limited-to-number-of-times/115709/5 "2019-04-24T03:54:11Z")

</div>

Easy workaround, raise the username change period site setting, finally when all dust settles turn it back down

---

<div class="post-metadata">

### Author: ![Edward\_D\_Avignon](https://avatars.discourse-cdn.com/v4/letter/e/ba9def/32.png) [@Edward\_D\_Avignon](https://meta.discourse.org/u/Edward_D_Avignon)
#### Post date: [April 24, 2019, 11:29am UTC](https://meta.discourse.org/t/can-username-change-be-limited-to-number-of-times/115709/6 "2019-04-24T11:29:03Z")

</div>

That workaround only works if we can guarantee the majority users will log in to the Discourse forums within a specified period of time. Discourse is not the primary function of the system but a way to get help.

---

<div class="post-metadata">

### Author: ![Stephen](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/stephen/32/95011_2.png) [@Stephen](https://meta.discourse.org/u/Stephen)
#### Post date: [April 24, 2019, 1:04pm UTC](https://meta.discourse.org/t/can-username-change-be-limited-to-number-of-times/115709/7 "2019-04-24T13:04:35Z")

</div>

Are you using any kind of SSO?

---

<div class="post-metadata">

### Author: ![Edward\_D\_Avignon](https://avatars.discourse-cdn.com/v4/letter/e/ba9def/32.png) [@Edward\_D\_Avignon](https://meta.discourse.org/u/Edward_D_Avignon)
#### Post date: [April 24, 2019, 6:11pm UTC](https://meta.discourse.org/t/can-username-change-be-limited-to-number-of-times/115709/8 "2019-04-24T18:11:23Z")

</div>

Yes SSO is in use. The username that is created for Discourse is based on the user’s full name. Some people do not want that exposed in Discourse so they want to change it.

---

<div class="post-metadata">

### Author: ![Stephen](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/stephen/32/95011_2.png) [@Stephen](https://meta.discourse.org/u/Stephen)
#### Post date: [April 24, 2019, 6:32pm UTC](https://meta.discourse.org/t/can-username-change-be-limited-to-number-of-times/115709/9 "2019-04-24T18:32:44Z")

</div>

Discourse can be configured to override the username with one provided in the SSO payload.

Why not make your IdM authoritative in this case and control renaming from there?

---

<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: [April 24, 2019, 11:09pm UTC](https://meta.discourse.org/t/can-username-change-be-limited-to-number-of-times/115709/10 "2019-04-24T23:09:08Z")

</div>

I’m not opposed to adding this feature, because I do think communities should minimize username changes .. but it’s a fair amount of engineering work to add a change count limit, versus the simple date-of-join protection we have now.

---

<div class="post-metadata">

### Author: ![Edward\_D\_Avignon](https://avatars.discourse-cdn.com/v4/letter/e/ba9def/32.png) [@Edward\_D\_Avignon](https://meta.discourse.org/u/Edward_D_Avignon)
#### Post date: [April 24, 2019, 11:55pm UTC](https://meta.discourse.org/t/can-username-change-be-limited-to-number-of-times/115709/11 "2019-04-24T23:55:38Z")

</div>

I wouldn’t add the feature since it would not be easy. I was just wondering if it was there and I missed a setting.

---

<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: [August 2, 2022, 6:29pm UTC](https://meta.discourse.org/t/can-username-change-be-limited-to-number-of-times/115709/12 "2022-08-02T18:29:22Z")

</div>


