Available for: Content Management Server
Task: Adds the user with the login
login
to each of the specified groups if he is not already a member.
Additional information: This action does not change the user’s
login
but the specified group. The permissions for modifying
the groups are therefore required to execute the command.
Syntax:
user withLogin login addToGroups {groupName}
Function parameters:
groupName
is the name of an existing user group. Any
number of groups can be specified.Return value if successful: none
Necessary permissions:
permissionGlobalUserEdit
permission and be
direct or indirect owner (owner
) of each group to which the user
login
should be added.Example:
CM>user withLogin jane addToGroups editors