← IAM416 / 640
hardgcloud

Add a new permission to an existing custom IAM role

command

gcloud iam roles update ROLE_ID --project PROJECT_ID --add-permissions PERMISSION

also accepted

gcloud iam roles updategcloud iam roles update ROLE_ID --add-permissions

Command breakdown

Part of the Google Cloud CLI (gcloud) — IAM category.

gcloudiamrolesupdateROLE_ID--projectPROJECT_ID--add-permissionsPERMISSION
FlagPurpose
--projectBoolean flag
--add-permissionsBoolean flag

Test your recall — not just your reading.

Practice with interactive quiz →