Skip to main content

Valid usernames

Comments

4 comments

  • DavidN.
    Hello, Thanks for contacting us. If I understand how this works, that shouldn't be allowed to happen. My understanding could be incorrect, so I'll ask for clarification. If you're running on a cPanel & WHM server, you can use the Perl module Cpanel::Validate::Username to check if a username is valid before making your API call. There is documentation in /usr/local/cpanel/Cpanel/Validate/Username.pod on how to use it. If you have any other questions about this, please don't hesitate to ask. David Nielson Integration Developer, cPanel
    0
  • sparek-3
    I think the first 8 characters of a username have to be unique. Which, if you ask me, kind of negates the point of allowing 16 character long usernames. I'm really not sure what was wrong with the 8 character username restriction to begin with.
    0
  • NLCJ
    I think the first 8 characters of a username have to be unique.

    This is correct; see the message below (directly copied from the 'Create a new account' function in WHM 11.50.1 - build 3). Perhaps the documentation needs to be updated? The name of another account on this server has the same initial 8 characters as the given username (username2). Each username"s first 8 characters must be unique.
    0
  • cPanelMichael
    Hello :) There's no longer an 8-character limit for usernames, regardless of if database prefixing is enabled. However, the first eight characters of any username must be unique. Only the first eight characters of the username are utilized for database names and database usernames when database prefixing is enabled (e.g. cp123456 is the database prefix if the account username is cp123456789). This decision was made because administrators have the option to enable or disable database prefixing at will in "WHM >> Tweak Settings". I've opened a case (DOC-6266) with our documentation team to correct the document referenced in this thread. Thank you.
    0

Please sign in to leave a comment.