Looks like username maximum length is 60 characters even if it’s set greater.
I tried with settings of 127 and 254 for username lengths…
Endpoint:
https://{{url}}/admin/groups
- name:
This_is_a_long_username_for_a_new_group_title_that_take_exactly_77_characters
Response:
{
"errors": [
"Name is too long"
]
}
After verification, this is related to:
https://github.com/discourse/discourse/blob/e0d9232259f6fb0f76bca471c4626178665ca24a/app/models/username_validator.rb#L44