Author Topic: Script or api to create user  (Read 60871 times)

0 Members and 1 Guest are viewing this topic.

Offline
*
Script or api to create user
« 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..

Re: Script or api to create user
« Reply #1 on: April 24, 2015, 11:51:24 PM »
Nop...

Offline
***
Re: Script or api to create user
« Reply #2 on: August 21, 2017, 04:21:12 PM »
API has a method for create user account

Offline
***
Re: Script or api to create user
« Reply #3 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
UNIX is a very simple OS, but you have to be a GENIUS to understand it ...

Offline
*
Re: Script or api to create user
« Reply #4 on: August 25, 2017, 08:49:05 PM »
more detailed instructions can be found here
http://wiki.centos-webpanel.com/cwp-account-api
VPS & Dedicated server provider with included FREE Managed support for CWP.
http://www.studio4host.com/

*** Don't allow that your server or website is down, choose hosting provider with included expert managed support for your CWP.

Offline
*
Re: Script or api to create user
« Reply #5 on: November 07, 2019, 07:48:21 PM »
I know that is a very old post, but still no api to create accounts ?