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:
-
groupNameis the name of an existing user group. Any number of groups can be specified.
Return value if successful: none
Necessary permissions:
- The logged-in user must be a super user or
- must have the
permissionGlobalUserEditpermission and be direct or indirect owner (owner) of each group to which the userloginshould be added.
Example:
CM>user withLogin jane addToGroups editors