After updating our Keycloak service we are now facing the problem that usernames are not allowed with whitespaces. When trying to create such a user, the error is “‘Username’ contains invalid character.”. There are also no restrictions to characters set in the User Profile. Is there any chance to remove this restriction?
1 Like
I doubt that you will be able to ged rid of this default setting.
I am facing exactly the same issue, does anyone know what version exactly introduced this? I can’t find the commit.
This also affects already created users because now update profile won’t work due to invalid characters on username.
Found a fix.
Context: username contains invalid characters · Issue #28231 · keycloak/keycloak · GitHub
Just delete username-prohibited-characters validator.
1 Like
Nice, this solves it! I did not think of this (somewhat obvious :/) solution a the Config is ‘{}’ so I thought that there are no restrictions anyway.
Thanks alot!
i am not able to delete it