You can assign one or more user-group based restrictions to an object, which adds the specified entries to the groups attribute for the object.
For a file, directory, or project, one of the following must be true.
- The object must be the first version, and the user must have write access to the object.
- The user must be in the group_mgr role and be a member of the current groups for the object.
- The user must be in the ccm_admin role.
For any other type of object, one of the following must be true:
- The user must be in the group_mgr role and be a member of the current groups for the object.
- The user must be in the ccm_admin role.
About this task
ccm group|groups -a|-assign (-v|-value group_item_list)... object_spec...
- object_spec...
- Specifies the object to be updated. See Object specification for details.
- -v|-value group_item_list
- Specifies the group restriction to be added. The group_item_list is a list of one or more items separated by commas or spaces and comma and spaces, where each item is in this form:
group_name
group_name:readsource
The group_name is the name of a group and defines modify or check out access restrictions. The group_name:readsource defines access restrictions on the visibility of the source attribute.
Example
Assign the groups
sqe_team and
design_team to an object named
makefile.pc-1:makefile:tut70#4. ccm groups -assign "sqe_team, design_team" makefile.pc-1:makefile:tut70#4