Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 2 of 2
  1. #1
    Registered User
    Join Date
    Nov 2010
    Posts
    1

    Arrow Automatically Creating cPanle User Using API

    Hello,

    I am using XML APIs for creating cPanel User in WHM (createacct)

    (1) I want to create a new user account with out passing username and WHM is able to generate a username based on the passed domain name
    (2) And based on Domain Name I want to get the username which is automatically created by WHM

    Can any one help me on how to do that I am using 11.26 WHM

    Regards
    c0mgu1

  2. #2
    Integration Developer cPanelDavidN's Avatar
    Join Date
    Dec 2009
    Location
    Houston, TX
    Posts
    525

    Default Re: Automatically Creating cPanle User Using API

    Hi c0mgu1,

    The XML-API function createacct will not perform the action you desire. You must pass a username when making your request. The parsing that you describe on WHM's Create Account page is provide by Javascript served from WHM.

    Your script will need to parse a valid username from the domain before making the XML-API call.

    Regards,
    -DavidN
    David Neimeyer
    Integration Developer

    sdk.cpanel.net
    APIs: XML-API API1 & API2
    Check Out: Developer Downloads Integration Blog
    Need Support? Support Ticket Developer Forum Feature Request

Similar Threads & Tags
Similar threads

  1. Creating User Accounts through API
    By qasim in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 05-04-2009, 10:44 AM
  2. Automatically creating a subdomain in Cpanel?
    By cragdo in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 06-02-2005, 11:12 PM
  3. Automatically creating subdomain with new acct?
    By ekimneems in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 03-31-2005, 02:25 PM
  4. Automatically creating Email/FTP/Alias with PHP
    By takabanana in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 03-11-2005, 07:06 PM
  5. Creating a reseller account automatically
    By cyberultra in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 12-04-2003, 11:48 AM
Tags for this Thread
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube