Previous Topic

Next Topic

Locate topic in Contents

Account Data in XML File

The example below includes absolutely al tags used to represent an account data. If you do not know what to write in one or another tag, you must leave such tags empty, but do not remove them from your XML file.

The account data can include information about documents and subscriptions existing for this account.

Note 1. Phone Number Format: Since phone numbers syntax may differ from country to country (for example, a country code can be written as +code or without +, or a regional code can be written in round brackets or without them, etc.), we recommend that you specify the phone and fax numbers in the unified format like

country code|regional code|number|extension.

and use not the tag like <admin_phone> for an account administrator phone number, but the special tag named like <admin_phone_src>.

Note 2. User Password Import:: The export script exports a user password exactly as it is stored in the Parallels Business Automation - Standard database, as a hash. The export script places a password hash into the <password_hash> tag and this is reflected in the example below. If you manually create an XML file to import an account data and use the <password_hash> tag to specify a user password, the import script considers this password as a hash and this results in the impossibility to view a user password in Parallels Business Automation - Standard web interface after import is finished. You can manually redefine a user password in XML file using the <password> tag, as this shown in the example below. In this case the password is actually redefined after import is finished with Parallels Business Automation - Standard database update and corresponding hash creation.

Example of XML account data:

<?xml version="1.0" encoding="utf-8"?>

<data>

<account id="29">

<admin_contact>

<admin_suffix />

<admin_lname>Smith</admin_lname>

<admin_fname>John</admin_fname>

<admin_mname />

<admin_mobile />

<admin_fax_src>|||</admin_fax_src>

<admin_gender />

<admin_email>john@mail.com</admin_email>

<admin_phone_src>1|112|12312312|</admin_phone_src>

<admin_mobile_src>|||</admin_mobile_src>

<admin_fax />

<admin_phone>+1 (112) 12312312</admin_phone>

<admin_insertion />

<admin_prefix />

</admin_contact>

<enroll_date>2005-07-28</enroll_date>

<is_corporate>0</is_corporate>

<status>active</status>

<documents />

<persons>

<person id="17">

<last_login>0000-00-00 00:00:00</last_login>

<mname />

<fname>John</fname>

<created_by_acct_no>29</created_by_acct_no>

<email>john@smith.com</email>

<suffix />

<address id="14">

<fax_src>1|114|1234569|5678</fax_src>

<status>0</status>

<mobile>+1 (113) 1234567</mobile>

<state />

<city>London</city>

<fax>+1 (114) 1234569 5678</fax>

<id>14</id>

<country>GB</country>

<house_num />

<mobile_src>1|113|1234567|</mobile_src>

<house_suff />

<phone>+1 (112) 1234567 9876</phone>

<address2 />

<zip>12AA-BB34</zip>

<state_alt />

<phone_src>1|112|1234567|9876</phone_src>

<address1>17, Baiker street</address1>

</address>

<id>17</id>

<gender />

<lang>en</lang>

<timezone>/usr/share/zoneinfo/Europe/London</timezone>

<last_modified>2005-07-28 13:27:24</last_modified>

<comment>Person&amp;apos;s comment</comment>

<lname>Smith</lname>

<password_hash>kfKawxdUOFfSSauxjlGXJXayGq8</password_hash>

<password>1q2w3e</password>

<roles>

<role id="9">

<name>customer_adm_uc</name>

<id>9</id>

<account_type>3</account_type>

<description />

<admin_level>8</admin_level>

</role>

</roles>

<skin_id>1</skin_id>

<prefix>Mr.</prefix>

</person>

</persons>

<address id="45">

<fax_src>1|114|1234569|5678</fax_src>

<status>2</status>

<mobile>+1 (113) 1234568</mobile>

<state />

<city>London</city>

<fax>+1 (114) 1234569 5678</fax>

<id>45</id>

<country>GB</country>

<house_num />

<mobile_src>1|113|1234568|</mobile_src>

<house_suff />

<phone>+1 (112) 1234567 9876</phone>

<address2 />

<zip>12AA-BB34</zip>

<state_alt />

<phone_src>1|112|1234567|9876</phone_src>

<address1>17, Baiker street</address1>

</address>

<id>29</id>

<subscriptions />

<name>John Smith Jr.</name>

<technical_contact>

<technical_suffix />

<technical_insertion />

<technical_fax_src>|||</technical_fax_src>

<technical_phone>+1 (112) 12312312</technical_phone>

<technical_gender />

<technical_mname />

<technical_mobile />

<technical_email>jomnen@hhh7.com</technical_email>

<technical_mobile_src>|||</technical_mobile_src>

<technical_prefix />

<technical_fax />

<technical_phone_src>1|112|12312312|</technical_phone_src>

<technical_lname>Mnemonic 7</technical_lname>

<technical_fname>Johnny</technical_fname>

</technical_contact>

<tax_ex_status>0</tax_ex_status>

<billing_contact>

<billing_gender />

<billing_lname>Mnemonic 7</billing_lname>

<billing_fax />

<billing_phone_src>1|112|12312312|</billing_phone_src>

<billing_phone>+1 (112) 12312312</billing_phone>

<billing_email>jomnen@hhh7.com</billing_email>

<billing_fname>Johnny</billing_fname>

<billing_insertion />

<billing_fax_src>|||</billing_fax_src>

<billing_suffix />

<billing_mname />

<billing_mobile_src>|||</billing_mobile_src>

<billing_prefix />

<billing_mobile />

</billing_contact>

<comment />

<type>3</type>

<tax_ex_number />

<vendor_id>1</vendor_id>

<vendor_name>Provider-Provider</vendor_name>

</account>

</data>

Please send us your feedback on this help page