# 用户没有更改用户名的选项吗？

**URL:** <https://meta.discourse.org/t/user-has-no-option-to-change-username/62451>\
**Category:** Support\
**Created:** [2017年五月10日 18:08 UTC](https://meta.discourse.org/t/user-has-no-option-to-change-username/62451 "2017-05-10T18:08:20Z")\
**Posts on this page:** 16\
**Page:** 1

<div class="post-metadata">

**Author:** ![RobMeade](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/robmeade/32/109119_2.png) [@RobMeade](https://meta.discourse.org/u/RobMeade)\
**Post date:** [2017年五月10日 18:08 UTC](https://meta.discourse.org/t/user-has-no-option-to-change-username/62451/1 "2017-05-10T18:08:20Z")

</div>

Hi,

I have a user on our hosted solution who has reported not being able to change their username. They have provided a screenshot and there is no _edit_ icon next to their existing username.

 ![](https://global.discourse-cdn.com/meta/original/3X/7/7/77d9015dc48ecc3dab81d7b7e77038cd579db7fb.jpg)

Additionally, they have option to delete their account, although I think this may be because they have made posts?

Things we have tried;

- I have tried elevating their permissions from _basic user_ to _member_ to _regular_, this made no difference.
- They created a new github account and a new Discourse account, this worked as expected and a delete option was available.
- I have tried deactivating the existing account with the issue, with them then re-activating it via the email, this made no difference.

The user is using github authentication. I can provide you with their details if required. We did have a similar issue once before regarding a Twitter user, I think one of you team had a little nose around in the database and cured something… not sure if it’s the same issue though, just feels a bit like it.

Any help would be really appreciated, kind regards 🙂

---

<div class="post-metadata">

**Author:** ![cpradio](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/cpradio/32/4970_2.png) [@cpradio](https://meta.discourse.org/u/cpradio)\
**Post date:** [2017年五月10日 18:11 UTC](https://meta.discourse.org/t/user-has-no-option-to-change-username/62451/2 "2017-05-10T18:11:24Z")

</div>

There are multiple settings in Admin \> Settings \> Users that you will want to review.

Below are a few  
`username change period`  
`delete user max post age`  
`delete all posts max`

---

<div class="post-metadata">

**Author:** ![RobMeade](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/robmeade/32/109119_2.png) [@RobMeade](https://meta.discourse.org/u/RobMeade)\
**Post date:** [2017年五月10日 18:14 UTC](https://meta.discourse.org/t/user-has-no-option-to-change-username/62451/3 "2017-05-10T18:14:02Z")

</div>

Hi @cpradio, thanks for such a prompt response…

Ironically, I have recently reverted from an admin to a moderator - I can’t access those settings now… _humpf_..

I have had my account only two months longer than the other account in question and I have the ability to change my username, I’m guessing that the `username change period` is perhaps overridden by being a moderator then?

---

<div class="post-metadata">

**Author:** ![DeanMarkTaylor](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/deanmarktaylor/32/102462_2.png) [@DeanMarkTaylor](https://meta.discourse.org/u/DeanMarkTaylor)\
**Post date:** [2017年五月10日 18:15 UTC](https://meta.discourse.org/t/user-has-no-option-to-change-username/62451/4 "2017-05-10T18:15:36Z")

</div>

I believe moderators are allowed to change usernames

---

<div class="post-metadata">

**Author:** ![RobMeade](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/robmeade/32/109119_2.png) [@RobMeade](https://meta.discourse.org/u/RobMeade)\
**Post date:** [2017年五月10日 18:17 UTC](https://meta.discourse.org/t/user-has-no-option-to-change-username/62451/5 "2017-05-10T18:17:03Z")

</div>

Hi Dean,

That probably explains why I still have the option then. I fully appreciate I _could_ change theirs, but wanted to get to the bottom of why the user couldn’t - I wasn’t aware of the `username change period` setting, will see if I can get hold of an admin at our end to check… guess I should have kept my access!

---

<div class="post-metadata">

**Author:** ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)\
**Post date:** [2017年五月10日 18:28 UTC](https://meta.discourse.org/t/user-has-no-option-to-change-username/62451/6 "2017-05-10T18:28:09Z")

</div>

Amongst a score of settings you’ll find if you search for “username” is `username change period`

![](https://global.discourse-cdn.com/meta/original/3X/5/b/5baeba92028b92bcbcc9519a629123ff33e5559c.png)

It’s generally a Bad Idea to change usernames. If it’s changed, previous referrals to that user break. That’s why it’s so short.

---

<div class="post-metadata">

**Author:** ![RobMeade](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/robmeade/32/109119_2.png) [@RobMeade](https://meta.discourse.org/u/RobMeade)\
**Post date:** [2017年五月10日 18:33 UTC](https://meta.discourse.org/t/user-has-no-option-to-change-username/62451/7 "2017-05-10T18:33:01Z")

</div>

Thanks for this, I hadn’t considered the linking back via tags and so on - I had explained to the user about familiarity in the community etc but of course, this is a very good reason!

I’ve heard back from one of our admins who also stated it was currently set to 3 days, so this must be what it is then.

I will go back to the user and explain and invariably update their username (they haven’t made very many posts yet, 5 I think).

I can only issue the one “solution” so will pop that against @cpradio, but thanks to all for the replies / info / prompt responses - really appreciated 🙂

---

<div class="post-metadata">

**Author:** ![Jason\_Schulke](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jason_schulke/32/178176_2.png) [@Jason\_Schulke](https://meta.discourse.org/u/Jason_Schulke)\
**Post date:** [2020年七月1日 20:50 UTC](https://meta.discourse.org/t/user-has-no-option-to-change-username/62451/8 "2020-07-01T20:50:07Z")

</div>

> [@pfaffman](#):
>
> 更改用户名通常是个坏主意。如果用户名被更改，之前指向该用户的引用就会失效。这就是为什么它如此简短。

情况仍然如此吗？cc [@team](https://meta.discourse.org/groups/team)

---

<div class="post-metadata">

**Author:** ![Jason\_Schulke](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jason_schulke/32/178176_2.png) [@Jason\_Schulke](https://meta.discourse.org/u/Jason_Schulke)\
**Post date:** [2020年七月1日 20:59 UTC](https://meta.discourse.org/t/user-has-no-option-to-change-username/62451/10 "2020-07-01T20:59:20Z")

</div>

看起来这种方法适用于自托管站点，对吗？如果是的话，我们的社区由 Discourse 托管——针对这种设置是否有类似的选项？

---

<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:** [2020年七月1日 20:59 UTC](https://meta.discourse.org/t/user-has-no-option-to-change-username/62451/11 "2020-07-01T20:59:52Z")

</div>

其实我不这么认为——我认为我们改进了它，使用户重命名的过程不再那么令人痛苦。

不过，人们仍然不建议每天或每周都重命名自己。如果是几年一次的话，或许可以。

---

<div class="post-metadata">

**Author:** ![Jason\_Schulke](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jason_schulke/32/178176_2.png) [@Jason\_Schulke](https://meta.discourse.org/u/Jason_Schulke)\
**Post date:** [2020年七月1日 21:07 UTC](https://meta.discourse.org/t/user-has-no-option-to-change-username/62451/12 "2020-07-01T21:07:24Z")

</div>

> [@codinghorror](#):
>
> 我认为我们已经改进了系统，使得用户重名的情况不再那么令人困扰。

听到这个消息太好了！我们很少收到这类请求，但有一位用户希望出于隐私原因更改用户名（隐藏其姓氏）。是否可以确认，我们可以为他们执行此操作而不会丢失其发帖历史？

---

<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:** [2020年七月1日 21:11 UTC](https://meta.discourse.org/t/user-has-no-option-to-change-username/62451/13 "2020-07-01T21:11:07Z")

</div>

是的，这样应该没问题。

---

<div class="post-metadata">

**Author:** ![Jason\_Schulke](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jason_schulke/32/178176_2.png) [@Jason\_Schulke](https://meta.discourse.org/u/Jason_Schulke)\
**Post date:** [2020年七月1日 21:13 UTC](https://meta.discourse.org/t/user-has-no-option-to-change-username/62451/14 "2020-07-01T21:13:22Z")

</div>

非常感谢 @codinghorror！

---

<div class="post-metadata">

**Author:** ![TheAlmightyZach](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/thealmightyzach/32/207550_2.png) [@TheAlmightyZach](https://meta.discourse.org/u/TheAlmightyZach)\
**Post date:** [2021年五月10日 01:51 UTC](https://meta.discourse.org/t/user-has-no-option-to-change-username/62451/15 "2021-05-10T01:51:51Z")

</div>

如果是这种情况，我们是否有可能允许无限期地更改用户名？我看到将设置设为 0 表示永远不允许更改，但如果我们希望能够随时更改用户名，是否可以提供某个选项（也许是 -1？）来实现无限制更改？

只是提供一个想法。

---

<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:** [2021年五月10日 05:29 UTC](https://meta.discourse.org/t/user-has-no-option-to-change-username/62451/16 "2021-05-10T05:29:52Z")

</div>

为什么不把数字改成一个大数，比如 3650？那就是 10 年。

---

<div class="post-metadata">

**Author:** ![JammyDodger](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jammydodger/32/254611_2.png) [@JammyDodger](https://meta.discourse.org/u/JammyDodger)\
**Post date:** [2024年六月8日 12:36 UTC](https://meta.discourse.org/t/user-has-no-option-to-change-username/62451/18 "2024-06-08T12:36:49Z")

</div>

该主题已在 2585 天后自动关闭。不再允许回复。
