Client Management Systems API

Request to create a user under a specified counterpart.


The following parameters are available in the request.

Parameter

Mandatory

Description

SessionID

Y

SessionID returned by the Login Request

User

Y

The User object.
See Section 4.4.3.3 for details.

EncryptionInfo

N

See Section 4.4.1.1 for details

SOAP 1.2 Definition

Request

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns="http://www.saxobank.com/service/cms/2013/08">
   <soapenv:Header>
     <ns:SessionId>string</ns:SessionId>
  </soapenv:Header>
   <soapenv:Body>
     <ns:CreateUserRequest>
<!-Optional:->
 <ns:EncryptionInfo>
 <!-Optional:->
 <ns:RSAKeySequenceNumber>int</ns:RSAKeySequenceNumber>
 <!-Optional:->
 <ns:AESKey>string</ns:AESKey>
 </ns:EncryptionInfo>
       <!-Optional:->
      <ns:User>
         <!-Optional:->
         <ns:CounterpartId>int</ns:CounterpartId>
         <!-Optional:->
         <ns:UserId>int</ns:UserId>
         <!-Optional:->
         <ns:Login>string</ns:Login>
         <!-Optional:->
         <ns:Name>string</ns:Name>
         <!-Optional:->
         <ns:Tin>string</ns:Tin>
         <!-Optional:->
         <ns:Password>string</ns:Password>
         <!-Optional:->
         <ns:Active>bool</ns:Active>
         <!-Optional:->
         <ns:AccessProfile>int</ns:AccessProfile>
         <!-Optional:->
         <ns:LockedOut>bool</ns:LockedOut>
         <!-Optional:->
         <ns:NationalTins>
           <!-Zero or more repetitions:->
           <ns:NationalTin>
             <ns:Country>string</ns:Country>
             <ns:Tin>string</ns:Tin>
           </ns:NationalTin>
         </ns:NationalTins>
         <!-Optional:->
         <ns:Nationality>string</ns:Nationality>
 <!-Optional:->
 <ns:PasswordIsEncrypted>boolean</ns:PasswordIsEncrypted>
 <!-Optional:->
 <ns:PasswordOnly>boolean</ns:PasswordOnly>
       </ns:User>
     </ns:CreateUserRequest>
   </soapenv:Body>
 </soapenv:Envelope>


 Response

<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
   <s:Header>
     <ActivityId CorrelationId="447c5f1d-24bc-4b04-bf0b-549c3367f220" xmlns="http://schemas.microsoft.com/2004/09/ServiceModel/Diagnostics">404eedc9-ccf9-420d-9a4f-7dd72547d880</ActivityId>
   </s:Header>
   <s:Body>
     <CreateUserResponse xmlns="http://www.saxobank.com/service/cms/2013/08">
       <UserId>int</UserId>
     </CreateUserResponse>
   </s:Body>
 </s:Envelope>

Code Examples


Code example 14: CreateUser request

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns="http://www.saxobank.com/service/cms/2013/08">
   <soapenv:Header>
     <ns:SessionId>kSBmg5PeS62euTScOQrwQNJ+P04uci2FUr0Tpef/eCY=</ns:SessionId>
   </soapenv:Header>
   <soapenv:Body>
     <ns:CreateUserRequest>
       <ns:User>
         <ns:CounterpartId>6602955</ns:CounterpartId>
         <ns:Login>UserLogin</ns:Login>
         <ns:Name>NameOfUser</ns:Name>
         <ns:Tin>123456789</ns:Tin>
         <ns:Password>Password123</ns:Password>
         <ns:Active>true</ns:Active>
         <ns:AccessProfile>187</ns:AccessProfile>
         <ns:LockedOut>1</ns:LockedOut>
         <ns:NationalTins>
           <ns:NationalTin>
             <ns:Country>DK</ns:Country>
             <ns:Tin>147258369</ns:Tin>
           </ns:NationalTin>
         </ns:NationalTins>
         <ns:Nationality>DK</ns:Nationality>
       </ns:User>
     </ns:CreateUserRequest>
   </soapenv:Body>
 </soapenv:Envelope>


Code example 15: CreateUser Response

<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
   <s:Header>
     <ActivityId CorrelationId="dbcbbcf7-bda7-40d0-89c9-ab2d3914872d" xmlns="http://schemas.microsoft.com/2004/09/ServiceModel/Diagnostics">b9e47851-6e68-4033-9881-ac71b6321cbc</ActivityId>
   </s:Header>
   <s:Body>
     <CreateUserResponse xmlns="http://www.saxobank.com/service/cms/2013/08">
       <UserId>6602959</UserId>
     </CreateUserResponse>
   </s:Body>
 </s:Envelope>