Jump to content

Customize cPanel username


Recommended Posts

Currently the module that automates the provisioning of a cPanel account in WHMCS uses cPanel's default username structure which is the first 8 characters of the domain name. How would I go about changing this if, for example, I store a custom field for each user and would like that to be the username that WHMCS uses to create the cPanel account?

Link to comment
Share on other sites

you can change that in the settings page ( general settings -> order tab )


there you see the following checkbox , enable it and you get random numbers


Enable Random Usernames Tick this box to generate random usernames for services rather than use the first 8 letters of the domain


Greetings From PowerChaos

Link to comment
Share on other sites

We put in a support ticket and just got the same response. So I'm assuming there's no way to hook onto that action and customize further than just randomizing? I don't necessarily need a GUI option, just a way to develop a hook that could write the username based on a custom field or variation of the email address.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated