AccountWebService.CreateAccountFull Method 

Creates a new account.

[C#]
public AccountValue CreateAccountFull(
   string usernameOwner,
   string username,
   string password,
   string firstName,
   string lastName,
   string email,
   AccountRoles role,
   string planId,
   bool changePasswordAllowed
);

Parameters

usernameOwner
Login of the owner of a new account.
username
Account login.
password
Account password.
firstName
Account owner's first name.
lastName
Account owner's last name.
email
Account owner's e-mail address.
role
Account role.
planId
ID of the plan.
changePasswordAllowed
Permission to change password.

Return Value

AccountValue object that represents a created account.

Remarks

The method adds a new account to the accounts tree of a user specified by usernameOwner. If usernameOwner is null or empty string, then the user specified by SOAP-header (see CredentialsSoapHeader) will be an owner of the newly created account. Note: Sitebuilder for Linux/Unix implementation of this method doesn't allow to create accounts with Administrator role.

Example SOAP 1.1

Request
POST /wsb/ServiceFacade/3.2.1/AccountWebService.asmx HTTP/1.1
Host: localhost
Content-Type: text/xml; charset=utf-8
Content-Length: length
SOAPAction: "http://swsoft.com/webservices/sb/3.2.1/AccountService/CreateAccountFull"

<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
  <soap:Header>
    <CredentialsSoapHeader xmlns="http://swsoft.com/webservices/sb/3.2.1/AccountService">
      <Login>string</Login>
      <Password>string</Password>
    </CredentialsSoapHeader>
  </soap:Header>
  <soap:Body>
    <CreateAccountFull xmlns="http://swsoft.com/webservices/sb/3.2.1/AccountService">
      <usernameOwner>string</usernameOwner>
      <username>string</username>
      <password>string</password>
      <firstName>string</firstName>
      <lastName>string</lastName>
      <email>string</email>
      <role>Administrator or Reseller or SiteOwner</role>
      <planId>string</planId>
      <changePasswordAllowed>boolean</changePasswordAllowed>
    </CreateAccountFull>
  </soap:Body>
</soap:Envelope>
Response
HTTP/1.1 200 OK
Content-Type: text/xml; charset=utf-8
Content-Length: length

<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
  <soap:Body>
    <CreateAccountFullResponse xmlns="http://swsoft.com/webservices/sb/3.2.1/AccountService">
      <UserAccount>
        <AccountId>string</AccountId>
        <IsBuiltIn>boolean</IsBuiltIn>
        <CreationDate>dateTime</CreationDate>
        <UserName>string</UserName>
        <Email>string</Email>
        <FirstName>string</FirstName>
        <LastName>string</LastName>
        <OwnerName>string</OwnerName>
        <IsLockedOut>boolean</IsLockedOut>
        <Role>Administrator or Reseller or SiteOwner</Role>
        <Profile>
          <Language>
            <LanguageId>string</LanguageId>
            <Code>string</Code>
            <Active>boolean</Active>
            <EnglishName>string</EnglishName>
          </Language>
          <Theme>
            <ThemeId>string</ThemeId>
            <Active>boolean</Active>
            <Name>string</Name>
            <Code>string</Code>
          </Theme>
          <ListSize>int</ListSize>
          <HideOverviewPage>boolean</HideOverviewPage>
          <ShowGettingStarted>boolean</ShowGettingStarted>
          <TemplateListSize>int</TemplateListSize>
        </Profile>
        <PlanId>string</PlanId>
        <IsChangePasswordAllowed>boolean</IsChangePasswordAllowed>
        <OwnerId>string</OwnerId>
      </UserAccount>
    </CreateAccountFullResponse>
  </soap:Body>
</soap:Envelope>

See Also

AccountWebService Web Service | Web services