← IAM204 / 640
hardgcloud

Add one or more permissions to an existing custom IAM role in a project

command

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

also accepted

gcloud iam roles update

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 →