createGroup

Syntax

createGroup(groupId, [userIds])

Arguments

groupId is a string indicating a group name.

userId (optional) is a STRING scalar/vector indicating the user names of the group members.

Details

Create a group of users. It can only be executed by an administrator.

The users specified by userIds must have been created with createUser.

Examples

Create a group "production", and add a user with user name "JohnSmith".

createGroup(`production, `JohnSmith);