← IAM205 / 640
hardgcloud

Copy an existing IAM role to create a new custom role in a destination project

command

gcloud iam roles copy --source SOURCE_ROLE --destination DEST_ROLE --dest-project PROJECT_ID

also accepted

gcloud iam roles copy

Test your recall — not just your reading.

Practice with interactive quiz →