Modify a sub-account

This function allows you to modify a sub-account (note that this function is only available for reseller accounts).

int User_Change($mdworks_account,$send_quota,$pass_user,$login,$password)

  • account_mdworks
  • send_quota : send quota assigned or false to change nothing
  • $pass_user : new user's password or false to leave it as is
  • $login : reseller account login
  • password: password for the reseller account


The SOAP server for user management is separate from the normal API:


Edit a sub-account.

$mdworks_account is the identifier of the mdworks account retrieved when the sub-account was created.

Settings (required)

All parameters are mandatory.


true or false

Error messages

No field should be left empty

No field should be left empty password

Intermediate error (wrong login / password)

No field should be left blank (mdworks account ID, credit, user password).

Unknown user: Please select a user that exists

Access denied: This user does not appear to belong to you.

Example with NuSOAP


$client = new soapclient(''); // Remove the 's' from 'https' if CURL is not installed

$parametres = array( 'account_mdworks'=>'431', 'send_quota'=>'500', 'pass_user'=>'new password', 'login'=>'your_login', 'password'=>'your_password' );

$variable=$client->call('Modif_Utilisateur', $parametres);

// Retrieve the error if any if($client->fault)
die("Error:Code: {$client->faultcode}"
. "Detail: {$client->faultactor}"
. "Solution: {$client->faultstring}");

print_r($variable); </source>

This gives a result of the type :

This number corresponds to the new user's ID.

Example with PHP5

 try { $client = new SoapClient(null, array('location' => "", 'uri'      => "", 'encoding'=>'ISO-8859-1' ));

$variable = $client->Modif_Utilisateur('431','500','nouveau password','votre_login','votre_mot_de_passe'); //ou //$variable = $client->__soapCall(Modif_Utilisateur,$parametres);

print_r($variable); } catch (SoapFault $fault) {
trigger_error("SOAP Fault: (faultcode: {$fault->faultcode}, faultstring: {$fault->faultstring})", E_USER_ERROR);


This post is also available in: Français (French)