Control Web Panel

Developers => Scripts => Topic started by: ixus on April 24, 2015, 03:24:11 PM

Title: Script or api to create user
Post by: ixus on April 24, 2015, 03:24:11 PM
Hi,

Do you have a way to create a new user from shell/php? I need the option to create a user, a database/dbuser and run a few commands to automate a process.

I can do it using normal shell, but it would be best to be able to have the user set up the "cwp"-way so that it is consistent and appear correctly in the interface.

Have looked through some scripts, but I got a php-message saying that I didn't have authorization or something like that, they where also encrypted. If I just could cun the add-user script with command line arguments it would be fantastic..
Title: Re: Script or api to create user
Post by: brijendrasial on April 24, 2015, 11:51:24 PM
Nop...
Title: Re: Script or api to create user
Post by: become on August 21, 2017, 04:21:12 PM
API has a method for create user account
Title: Re: Script or api to create user
Post by: darkness on August 23, 2017, 05:43:53 AM
Quote
ixus
Just use in the shell cURL to execute IP:2030/api/?key=KEY&api=account_new&domain=DOMAIN&username=USERNAME&password=PASSWORD&package=PACKAGE-NUMBER&email=CLIENT-EMAIL&inode=10000&nofile=100&nproc=25
Title: Re: Script or api to create user
Post by: studio4host on August 25, 2017, 08:49:05 PM
more detailed instructions can be found here
http://wiki.centos-webpanel.com/cwp-account-api
Title: Re: Script or api to create user
Post by: ronisouza on November 07, 2019, 07:48:21 PM
I know that is a very old post, but still no api to create accounts ?