# 能否更改“Staff”组名？

**URL:** https://meta.discourse.org/t/can-i-change-the-staff-group-name/141910
**Category:** Support
**Created:** [2020年二月18日 16:21 UTC](https://meta.discourse.org/t/can-i-change-the-staff-group-name/141910 "2020-02-18T16:21:26Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![Chris27](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/chris27/32/141170_2.png) [@Chris27](https://meta.discourse.org/u/Chris27)
#### Post date: [2020年二月18日 16:21 UTC](https://meta.discourse.org/t/can-i-change-the-staff-group-name/141910/1 "2020-02-18T16:21:26Z")

</div>

我需要更新活跃社区的设置，使所有用户名至少为 6 个字符。我们正在手动更新所有少于 6 个字符的名称，但“Staff”组的名称少于 6 个字符，我不确定是否可以更新？

管理员中的警告指出，如果存在名称短于最小值的用户或组，我们的网站将会崩溃，这显然不是我想要的：

“警告：如果任何现有用户或组的名称短于此限制，您的网站将会崩溃！”

有人能在这里帮我吗？

提前感谢！

---

<div class="post-metadata">

### Author: ![RGJ](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/rgj/32/523185_2.png) [@RGJ](https://meta.discourse.org/u/RGJ)
#### Post date: [2020年三月9日 19:47 UTC](https://meta.discourse.org/t/can-i-change-the-staff-group-name/141910/3 "2020-03-09T19:47:41Z")

</div>

> [@pfaffman](#):
>
> 这未经测试，但应该可以运行

不，你会遇到各种各样的问题。

```
2.6.0 :004 > Group.find(3).name
 => "long-staff-name" 
2.6.0 :005 > Group.refresh_automatic_groups!()
 => [:everyone, :admins, :moderators, :staff, :trust_level_0, :trust_level_1, :trust_level_2, :trust_level_3, :trust_level_4]
2.6.0 :006 > Group.find(3).name
 => "staff"

```

---

<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: [2020年三月9日 19:54 UTC](https://meta.discourse.org/t/can-i-change-the-staff-group-name/141910/4 "2020-03-09T19:54:01Z")

</div>

> [@RGJ](#):
>
> 不，你会在方方面面遇到问题。

是的。当我看到这个时，我很惊讶自己竟然还给出了一个答案。

> [@pfaffman](#):
>
> 我的建议是认定 5 个字符的名称就足够了，但你并没有问这个。

所以也许我的回答中只有这部分是有用的！

---

<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: [2020年三月9日 20:24 UTC](https://meta.discourse.org/t/can-i-change-the-staff-group-name/141910/5 "2020-03-09T20:24:00Z")

</div>

最好把那段代码片段删掉。我们不想让人还没往下翻到意识到这是个多么糟糕的主意，就贸然尝试了。

---

<div class="post-metadata">

### Author: ![Lilly](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/lilly/32/575047_2.png) [@Lilly](https://meta.discourse.org/u/Lilly)
#### Post date: [2024年二月25日 13:41 UTC](https://meta.discourse.org/t/can-i-change-the-staff-group-name/141910/7 "2024-02-25T13:41:59Z")

</div>


