PreviousNext

group add

Adds members to a security group. The syntax is:

group add group_name_list -member member_name_list

Options

-member member_name_list
A list of one or more names of principals to be added to each group in the argument.

Description
The group add operation adds members to groups idnetified by group_name_list. The required member_name_list is a list of principal names to be added. The member_name_list can contain both local and fully qualified names. Use fully qualified names to add principlas from foreign cells as members. If you are adding principals from a foreign cell, the Security Server (secd) must be running in the foreign cell.

If the principals named in group_name_list do not exist, the command returns an error. This operation returns an empty string on success.

Privileges Required
You must have r (read) and M (Member_list) permissions on the target group and r (read) and g (groups) permissions on the principal being added.

Examples

dcecp> principal create chopin
dcecp>

dcecp> group add users -member chopin
dcecp>