The addmember command is used primarily to add one or more new members to a group or to multiple groups. The new members can be existing AccuRev usernames or existing groups. You can nest group membership to any number of levels. The group(s) that the member(s) are added to are listed at the end of the command; specify multiple groups as a comma-separated list (with no intervening spaces). Group names that contain spaces must be surrounded by double quotes.
An alternative use of the addmember command is to remove one or more members from a group or set of groups. The syntax for this command variant uses parentheses around each user or group to be removed. Items to be added or removed may be specified in any order on the command line.
Note: The
addmember command is treated as a transaction. If any part of the operation fails, the entire operation fails and none of the specified groups are modified.
Create a new group, qagrp, and add it to the existing group
eng:
Add and remove several AccuRev users and groups from existing group eng (the command shown removes the user
john and the group
project_qa, and adds the user
joseph):
Note: On UNIX/Linux systems, you will probably need to put backslashes (
\ ) before the parentheses to escape them for the shell: