addUsersToGroup

Back to index

Summary

Adds one or more specified users to a local group.
groupName
Stringrequired
Name of the group; must be unique among local groups.
userName
Arrayoptional
List of users to add/remove from the group.

Usage

Perl

$cmdr->addUsersToGroup( "test-groupName" # groupName # optionals );

ectool

ectool addUsersToGroup \ "test-groupName" `# groupName` \ # optionals

Examples

Perl

$cmdr->addUsersToGroup("Developers", {userName => ["John", "Jim", "Joey"]});

ectool

This example uses the singular userName argument to add one user to the group:

ectool addUsersToGroup Developers --userName John

This example uses the plural userNames argument to add more than one user to the group:

ectool addUsersToGroup Developers --userNames John Jim Joey