Client Management Systems API

Request to update information on a user.


The following input 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.
When updating, the

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:UpdateUserRequest>
 <!-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:UpdateUserRequest>
   </soapenv:Body>
 </soapenv:Envelope>


Response

<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
   <s:Header>
     <ActivityId CorrelationId="1ca54e0e-6147-4d8c-9fff-fe6c73db9481" xmlns="http://schemas.microsoft.com/2004/09/ServiceModel/Diagnostics">guid</ActivityId>
  </s:Header>
   <s:Body/>
 </s:Envelope>

Code Examples

Code example 52: UpdateUser request
In this example the User with UserId 5791128 has the name updated to "JustUpdatedName".

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns="http://www.saxobank.com/service/cms/2013/08">
   <soapenv:Header>
     <ns:SessionId>QAs01NW22ajBAsjFZTGM</ns:SessionId>
   </soapenv:Header>
   <soapenv:Body>
     <ns:UpdateUserRequest>
       <ns:User>
         <ns:UserId>5791128</ns:UserId>
         <ns:Name>JustUpdatedName</ns:Name>
       </ns:User>
     </ns:UpdateUserRequest>
   </soapenv:Body>
 </soapenv:Envelope>


Code example 53:UpdateUser Response

<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
   <s:Header>
     <ActivityId CorrelationId="1ca54e0e-6147-4d8c-9fff-fe6c73db9481" xmlns="http://schemas.microsoft.com/2004/09/ServiceModel/Diagnostics">e09a993a-10f5-4b35-a029-86d9eeb1f93c</ActivityId>
   </s:Header>
   <s:Body/>
 </s:Envelope>