Create user

				
					StructOperationResponse WebHostingDBUserCreate(string $IDsession, string $id, string $username, string $password, string $internalAccess, string $externalAccess)
				
			

Create a database user.

REQUIRED

  • idSession string (32)
    Session ID.
  • id string
    Hosting ID.
  • username string
    Name of the user.

    It must be prefixed by the vhost ID and an underscore (Example XXXXX_myuser).

  • password string
    User’s password.
  • internalAccess string
    “RW”, “RO” or “NO”.
  • externalAccess string
    “RW”, “RO” or “NO”.

RW = Read / Write

RO = Read Only

NO = None

An Object of type StructOperationResponse

<?php 
$clientSOAP = new SoapClient("http://URL.wsdl");
 
try 
{
 
    $idSession = $clientSOAP->sessionOpen("XXXX", "XXXX", "EN"); 
    $clientSOAP->WebHostingDBUserCreate($idSession, "NW1024", "NW1024_admin", "12abCD%@", "RW", "RW"); 
}
catch(SoapFault $fault) 
{
    echo "Exception : " .$fault->getMessage(). "\n"; 
}
 
if (isset($idSession)) 
{
    $clientSOAP->sessionClose($idSession); 
}