Creating a User Account

The operation add operation lets you create a user account.

In this chapter:

Request Packet Structure

Response Packet Structure

Samples

 

Request Packet Structure

A request XML packet adding a new user account to Plesk includes the add operation node:

<packet>
<user>
   <add>
   ...
   </add>
</user>
</packet>

 

The add node is of type UserAddInput type (user.xsd). It has the following graphics representation:

UserAddInput

Important: When creating request packets, put nodes and elements in the order they follow in the packet structure.

 

Response Packet Structure

The add node of the response packet is structured as follows:

user-add-reps.gif

 

Samples

A request packet to create a user account can look as follows:

<packet>
<user>
<add>
     <gen-info>
       <login>admin2@adams.com</login>
       <passwd>123123</passwd>
       <name>Eugene Grin</name>
     </gen-info>
     <roles>
       <name>Admin</name>
     </roles>    
</add>
</user>
</packet>

Response:

<packet version="1.6.3.0">
  <user>
    <add>
      <result>
        <status>ok</status>
        <id>21</id>
        <guid>8712cd03-14e2-9e16-95af-c67e3ffc2696</guid>
      </result>
    </add>
  </user>
</packet>