createGroup

Back to index

Summary

Creates a new local group of users or personas.
groupName
Stringrequired
Name of the group; must be unique among local groups.
persona
Arrayoptional
List of personas that this group has.
userName
Arrayoptional
List of users in the group.

Usage

Perl

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

ectool

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

Examples

Perl

$cmdr->createGroup("personaGroup", {personas => ["persona1", "persona2"]});

ectool

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

ectool createGroup "Build Users" --userName "Betty Barker"

This example uses the plural userNames argument to add two or more usernames to the group:

ectool createGroup "Build Users" --userNames "aallen" "Betty Barker" "cclark"

This example creates a group of personas:

ectool createGroup "personaGroup" --personas "persona1" "persona2"