Updating User Account Details

Use the set operation to update user account details.

In this chapter:

Request Packet Structure

Response Packet Structure

Samples

 

Request Packet Structure

A request XML packet that changes user account settings should include the set operation node:

<packet>
<user>
   <set>
   ...
   </set>
</user>
</packet>

 

The set node is nested within type UserSetInput (user.xsd). This node has the following graphics representation:

user-set-rps.gif

The values node is structured as follows:

user-set-values-reps.gif

Important: When creating request packets, put nodes and elements in the order they follow in the packet structure.

 

Response Packet Structure

The set node of the response packet is structured as follows:

user-set-reps.gif

 

Samples

A request packet can look as follows:

<packet version="1.6.3.0">
<user>
<set>
   <filter>
      <owner-guid>58bb9092-4c8b-4110-ba3d-c40bdad3b178</owner-guid>
   </filter>

<values>
   <roles>
     <name>WebMaster</name>
   </roles>
</values>

</set>
</user>
</packet>

Response:

<packet version="1.6.3.0">
  <user>
    <set>
      <result>
        <status>ok</status>
        <filter-id>58bb9092-4c8b-4110-ba3d-c40bdad3b178</filter-id>
        <id>20</id>
      </result>
      <result>
        <status>ok</status>
        <filter-id>58bb9092-4c8b-4110-ba3d-c40bdad3b178</filter-id>
        <id>21</id>
      </result>
    </set>
  </user>
</packet>