# Setting 'min username length' greater than 5 breaks granting and revoking Admin/Moderator permissions

**URL:** <https://meta.discourse.org/t/setting-min-username-length-greater-than-5-breaks-granting-and-revoking-admin-moderator-permissions/57079>\
**Category:** Bug\
**Created:** [7 Febrero, 2017 16:50 UTC](https://meta.discourse.org/t/setting-min-username-length-greater-than-5-breaks-granting-and-revoking-admin-moderator-permissions/57079 "2017-02-07T16:50:10Z")\
**Posts on this page:** 1\
**Showing post:** 5

<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:** [7 Febrero, 2017 18:05 UTC](https://meta.discourse.org/t/setting-min-username-length-greater-than-5-breaks-granting-and-revoking-admin-moderator-permissions/57079/5 "2017-02-07T18:05:29Z")

</div>

Actually, maybe we should just make the minimum be 5 since staff is in the same namespace. It does seem a bit odd that group names are affecting this @sam, recategorizing this back to bug..

I went ahead and added this softer warning instead, to both min and max:

`min_username_length: "Minimum username length in characters. WARNING: if any existing users or groups have names shorter than this, your site will break!"`  
`max_username_length: "Maximum username length in characters. WARNING: if any existing users or groups have names longer than this, your site will break!"`

---

_[View the full topic](https://meta.discourse.org/t/setting-min-username-length-greater-than-5-breaks-granting-and-revoking-admin-moderator-permissions/57079)._
