Type domainUserSet
The user node is used in the add and set request packets. It is specified by complex type domainUserSet (plesk_domain.xsd). This node is structured as follows (pared-down variant):

- The enabled node is optional. It specifies the domain account status. Data type: Boolean.
- The password node is optional. It specifies the domain administrator password. Data type: string (5 to 14 characters long).
- The global-login and the uid nodes are deprecated since protocol version 1.5.2.0.
- The cname node is optional. It specifies the company of a domain administrator. Data type: string (0 to 255 characters long).
- The pname node is optional. It specifies the domain administrator name. Data type: string (0 to 255 characters long).
- The phone node is optional. It specifies the phone number of a domain administrator. Data type: string (0 to 255 characters long).
- The fax node is optional. It specifies the fax number of a domain administrator. Data type: string (0 to 255 characters long).
- The email node is optional. It specifies the email address of a domain administrator. Data type: string (0 to 255 characters long).
- The address node is optional. It specifies the postal address of a domain administrator. Data type: string (0 to 255 characters long).
- The city node is optional. It specifies the domain administrator city. Data type: string (0 to 255 characters long).
- The state node is optional. It specifies the domain administrator state. Is required for US only. Data type: string (0 to 255 characters long).
- The pcode node is optional. It specifies the zip code of a domain administrator. Is required for US only. Data type: string (0 to 10 characters long).
- The country node is optional. It specifies the country code of a domain administrator. Data type: string (0 to 2 characters long).
- The multiply_login node is optional. It indicates whether multiple logins with the same domain administrator credentials are allowed. Data type: Boolean.
- The perms node is optional. It specifies a collection of permissions set for the domain administrator. Data type: domainPerms (
plesk_domain.xsd). To view the structure of this node, refer to the Limits, Permissions and Hosting Settings section.
The following sample packet creates a domain account and sets Domain Administrator information:
<packet version="1.6.0.0">
<domain>
<add>
<gen_setup>
<name>example.com</name>
<owner-id>1234</owner-id>
<ip_address>192.0.2.123</ip_address>
</gen_setup>
<user>
<enabled>false</enabled>
<password>123456</password>
<cname>Mega Company</cname>
<pname>John Doe</pname>
<phone>2121342526</phone>
<fax>2121342527</fax>
<email>JDoe@sample.com</email>
<address>Gray Lake Road, 12</address>
<city>Totonto</city>
<state/>
<pcode/>
<country>CA</country>
<multiply_login>false</multiply_login>
<permissions/>
</user>
</add>
</domain>
</packet>