HashiCorp Cloud Platform
hcp iam groups iam delete-binding
Command: hcp iam groups iam delete-binding
The hcp iam groups iam delete-binding
command deletes an IAM policy binding
for the given group. A binding consists of a principal and a role.
To view the existing role bindings, run hcp iam groups iam read-policy
.
Usage
$ hcp iam groups iam delete-binding --group=NAME --member=PRINCIPAL_ID
--role=ROLE_ID [Optional Flags]
Examples
Delete a role binding for a principal's previously granted role
roles/iam.group-manager
:
$ hcp iam groups iam delete-binding \
--group=Group-Name \
--member=ef938a22-09cf-4be9-b4d0-1f4587f80f53 \
--role=roles/iam.group-manager
Required flags
-g, --group=NAME
- The name of the group to remove the role binding from.-m, --member=PRINCIPAL_ID
- The ID of the principal to remove the role binding from.-r, --role=ROLE_ID
- The role ID (e.g. "roles/admin", "roles/contributor", "roles/viewer") to remove the member from.