updateUser Operation

With updateUser operation you can update the configuration of an existing user.

Request Parameters

authToken, loginName, firstName, lastName, loginPassword, phone, email, enabled, privileges, devices, appliances, changeLoginNameTo

Response

userResponse (see userResponse Type)

Example

SOAP request to update the createUser example, by removing the Configuration Administrator as a privilege for the user:

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:user="UserService">
   <soapenv:Header/>
   <soapenv:Body>
      <user:updateUser>
         <!--Optional:-->
         <user:authToken>admin/admin123</user:authToken>
         <!--Optional:-->
         <user:loginName>hello1</user:loginName>
         <!--Optional:-->
         <user:firstName>f1-update</user:firstName>
         <!--Optional:-->
         <user:lastName>l1-new</user:lastName>
         <!--Optional:-->
         <user:loginPassword>admin1234</user:loginPassword>
         <!--Optional:-->
         <user:phone>234-567-8901</user:phone>
         <!--Optional:-->
         <user:email>hello1@test.com</user:email>
         <!--Optional:-->
         <user:enabled>no</user:enabled>
         <!--Optional:-->
         <user:privileges>Report Administrator”</user:privileges>
         <!--Optional:-->
         <user:devices>all</user:devices>
         <!--Optional:-->
         <user:appliances></user:appliances>
         <!--Optional:-->
         <user:changeLoginNameTo>hello2</user:changeLoginNameTo>
      </user:updateUser>
   </soapenv:Body>
</soapenv:Envelope>

Example

SOAP response for updateUser Operation:
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
   <soapenv:Header/>
   <soapenv:Body>
      <ns:updateUserResponse xmlns:ns="UserService">
         <ns:return xsi:type="ax233:UserResponse" xmlns:ax233="http://user.services.logapp.loglogic.com/xsd" xmlns:ax234="http://services.logapp.loglogic.com/xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
            <ax234:authToken xsi:nil="true"/>
            <ax234:resultCount>1</ax234:resultCount>
            <ax234:statusCode>2000</ax234:statusCode>
            <ax234:statusMessage>Successful</ax234:statusMessage>
            <ax234:summaryOnly>false</ax234:summaryOnly>
            <ax233:resultSet xsi:type="ax233:UserDetail">
               <ax233:alerts xsi:nil="true"/>
               <ax233:authenticationType>Local</ax233:authenticationType>
               <ax233:devices>::ffff:10.114.81.43_logapp</ax233:devices>
               <ax233:devices>xxxx</ax233:devices>
               <ax233:devices>::ffff:10.114.81.43_otherUnix</ax233:devices>
               <ax233:devices>::ffff:127.0.0.1_General</ax233:devices>
               <ax233:devices>xxxxx</ax233:devices>
               <ax233:devices>::1_logapp</ax233:devices>
               <ax233:devices>::ffff:10.114.81.43_logu</ax233:devices>
               <ax233:email>hello1@test.com</ax233:email>
               <ax233:enabled>No</ax233:enabled>
               <ax233:firstName>f1-update</ax233:firstName>
               <ax233:groups xsi:nil="true"/>
               <ax233:lastName>l1-new</ax233:lastName>
               <ax233:password/>
               <ax233:phone>234-567-8901</ax233:phone>
               <ax233:userId>1711576871403523</ax233:userId>
               <ax233:username>hello2</ax233:username>
            </ax233:resultSet>
         </ns:return>
      </ns:updateUserResponse>
   </soapenv:Body>
</soapenv:Envelope>