Assigning a role to a group through CLI

You can assign a role to a group, remove a role from a group, and view a list of the roles assigned to a group.

You can use the following command to assign a role to a group:

cdp iam assign-group-role \
--group-name=GroupName \
--role=RoleCRN

To remove a role from a group:

cdp iam unassign-group-role \
--group-name=GroupName \
--role=RoleCRN 

The role parameter requires the CRN of the CDP role.

To get a list of the roles assigned to a group:

cdp iam list-group-assigned-roles \
--group-name=GroupName