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.
Adding
the group_name:readsource restriction to a project
causes new files in the project to inherit that access restriction
from that point forward. The group_name:readsource restriction
is not supported for directories.
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