Summary:
Modifies an existing user.
Request specification:
Name |
Min/Max |
Type |
Description |
|
|
|
|
|
|
|
|
|
|
|
The name of the user to update the details for. |
|
|
User information. The user name must always be included, even if you are not changing it. |
|
|
|
|
This element, together with the |
|
|
|
|
|
|
|
|
Returns:
OK/Error
Example 1:
Changing the user's password and the default shell information in the specified server.
Input
<packet version="4.0.0">
<dst>
<host>9bafbeb7-85f7-499e-a210-40e00850a5f3</host>
</dst>
<target>userm</target>
<data>
<userm>
<edit_user>
<name>TestUser</name>
<user>
<shell>/bin/sh</shell>
<password>bXluZXdwYXNz</password>
<name>TestUser</name>
</user>
</edit_user>
</userm>
</data>
</packet>
Example 2:
Changing the user name and adding the user to the specified group.
Input
<packet version="4.0.0">
<target>userm</target>
<data>
<userm>
<edit_user>
<name>TestUser</name>
<user>
<name>JohnDoe</name>
<group>
<name>Users</name>
</group>
</user>
</edit_user>
</userm>
</data>
</packet>