Are usernames that contain only numbers not valid?


We re-configured the OAuth provider to user a user-id as username in This does allow the user to login. It is also listed in the admin panel as user.

But the mentions (like @324) don’t seem to work. Also clicking on a user in a room gives the message “user not found”. In the members list of a room the user is visible, but clicking on it there also gives the ‘user not found’ message.

Is this not allowed to be done or can the username format be configured to work like this?

Server Setup Information

  • Version of Rocket.Chat Server: 3.5.0
  • Operating System: Ubuntu 18.04
  • Deployment Method: docker
  • Number of Running Instances: 1
  • MongoDB Version: 4
  • Proxy: apache
  • Firewalls involved: no

Any additional Information

log does not contain any errors.

But the check algorithm says “Your regex should not match 007”. This is incorrect. By the above criteria, 007 is a valid username. All the numbers are at the end. It’s at least two characters long. It is not a two-letter username and so it does not need to use only alphabet letter characters.