hcp projects iam delete-binding
Command: hcp projects iam delete-binding
The hcp projects iam delete-binding
command deletes an IAM policy binding for
the given project. A binding consists of a principal and a role.
To view the existing role bindings, run hcp projects iam read-policy
.
Usage
$ hcp projects iam delete-binding --member=PRINCIPAL_ID --role=ROLE_ID [Optional Flags]
Examples
Delete a role binding for a principal previously granted role roles/viewer
:
$ hcp projects iam delete-binding \ --project=8647ae06-ca65-467a-b72d-edba1f908fc8 \ --member=ef938a22-09cf-4be9-b4d0-1f4587f80f53 \ --role=roles/viewer
Required flags
--member=PRINCIPAL_ID
- The ID of the principal to remove the role binding from.--role=ROLE_ID
- The role ID (e.g. "roles/admin", "roles/contributor", "roles/viewer") to remove the member from.