hcp organizations iam add-binding
Command: hcp organizations iam add-binding
The hcp organizations iam add-binding
command adds an IAM policy binding for
the organization. A binding grants the specified principal the given role on the
organization.
To view the available roles to bind, run hcp iam roles list
.
Usage
Examples
Bind a principal to role roles/viewer
:
Required flags
--member=PRINCIPAL_ID
- The ID of the principal to add the role binding to.--role=ROLE_ID
- The role ID (e.g. "roles/admin", "roles/contributor", "roles/viewer") to bind the member to.