user userRef removeFromGroups

Available for: Content Management Server

Task: Removes the user with the login login from the specified groups.

Additional information: A user cannot be removed from his default group.

Syntax:

user withLogin login removeFromGroups {groupName}

Function parameters:

  • groupName Name of a group from which the user is to be removed.

Return value if successful: none

Necessary permissions:

  • The logged-in user must be a super user or
  • must have the permissionGlobalUserEdit permission and be direct or indirect owner of each group from which the user login should be removed.

Example:

CM>user withLogin jane removeFromGroups admins