Previous page

Next page

Locate page in Contents

Print this page

edit_user

Summary:

Modifies an existing user.

Request specification:

Name

Min/Max

Type

Description

edit_user

0..[]

 

 

{

 

 

 

name

1..1

string

The name of the user to update the details for.

user

1..1

userType

User information. The user name must always be included, even if you are not changing it.

min_uid

0..1

int

Linux Lower bound of the UID (user ID) range. Include this element if you would like to change the UID.

This element, together with the max_uid element (below), specifies the UID range. If there is an unused ID in the range then it will be assigned to the user.

max_uid

0..1

int

Linux Upper bound of the UID range.

}

 

 

 

Returns:

OK/Error

Linux 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>

WindowsExample 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>

Please send us your feedback on this help page