New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Username minimum length in 3.7 is too restricting #5794
Comments
Hey @asalmela, thanks for the report We're now considering a patch fix for Mattermost 3.7.2, which reduces the minimum username length requirement to 2 characters. You can see more details on our public Mattermost instance. |
@asalmela v3.7.2 is now out and available on our download page. It reduces the server-side minimum length from 3 to 1, matching what we had in Mattermost v3.6 and earlier |
Hm - that seems like a separate issue @napcae - or is it only restricted to usernames with one or two characters. Which authentication method are you using? If you have LDAP, can you try running the LDAP synchronization manually to make sure you have latest user attributes pulled, from System Console > AD/LDAP > AD/LDAP Synchronize Now |
It is restricted to usernames with two characters(maybe also one character, but we only have usernames with two or more characters). I did what you said, but the issue is still not resolved. We are using AD btw. |
Can you help take a screenshot of the About Mattermost dialog (it can be found from Mattermost three-dotted Main Menu next to your username in the header > About Mattermost), just to confirm the upgrade to 3.7.2 was successful. |
Thanks @napcae, appreciate it. To summarize:
Observed:
May I ask few more questions:
|
So apparently the usernames(with two characters) are back now. The issue is resolved. Maybe the AD/LDAP Sync did work indeed and names were just cached(?). |
Awesome! Glad to hear the issue is fixed @napcae 👍 |
Appreciate your assistance :) |
@napcae I am seeing the same problem with usernames. Any idea what you did to resolve it? I tried clearing caches, and resyncing LDAP. |
Thanks @beckf for the report We made a change to properly validate the usernames when creating users via the API: #5581 However, it looks like it's causing issues with LDAP usernames as you reported here https://forum.mattermost.org/t/username-incorrect-after-upgrade-to-3-7-3/3150. We have a ticket to revert this change, which is considered for Mattermost v3.8.1: https://mattermost.atlassian.net/browse/PLT-6334 |
We have several accounts in LDAP with two letter usernames, and 3.7 introduced minimum length of 3 letters. These accounts are now represented as long alphanumeric strings which cannot be modified.
Is there any possibility to relax this limit a little?
The text was updated successfully, but these errors were encountered: