Previous page

Next page

Locate page in Contents

Print this page

edit_group

Summary:

Allows to modify name and GID for an existing group.

Request specification:

Name

Min/Max

Type

Description

edit_group

0..[]

 

 

{

 

 

 

name

1..1

string

The group to update the info for.

group

1..1

 

New name and (or) GID.

{

 

 

 

name

0..1

string

New group name.

gid

0..1

int

New group ID.

}

 

 

 

min_gid

0..1

int

Linux Lower bound of the GID (group ID) range.

Include this element if you would like to change the group GID and would like it to be selected automatically from the specified range.

This element, together with the max_gid element (below), specifies the GID range. If there is an unused ID in the range then it will be used for the new group.

max_gid

0..1

int

Linux Upper bound of the GID (group ID) range.

}

 

 

 

Returns:

OK/Error

Linux Example:

Changing the name of an existing group TestGroup to mynewgroup. Also changing the group ID -- the ID will be automatically selected from the range of 300 to 400.

<packet version="4.0.0">

<dst>

<host>9bafbeb7-85f7-499e-a210-40e00850a5f3</host>

</dst>

<target>userm</target>

<data>

<userm>

<edit_group>

<name>TestGroup</name>

<group>

<name>mynewgroup</name>

</group>

<min_gid>300</min_gid>

<max_gid>400</max_gid>

</edit_group>

</userm>

</data>

</packet>

Please send us your feedback on this help page