프로젝트의 구성원에게 역할을 부여합니다. 구성원은 실제 사용자 또는 서비스 계정일 수 있습니다. 바인딩 이름은 자동으로 생성됩니다.
EXAMPLES
To grant the role "pr-test-role" for user "test-user@example.com" with IdP prefix "fop" in project "iam-test", run:
gdcloud projects add-iam-policy-binding iam-test --role=pr-test-role --member=user:fop-test-user@example.com
To grant the role "pr-test-role" for service account "test-sa" of project "test-sa-project" in the project "iam-test", run:
gdcloud projects add-iam-policy-binding iam-test --role=pr-test-role --member=serviceAccount:test-sa-project:test-sa
필수 플래그
--member string Member to add the binding for, defined by either user:EMAIL or serviceAccount:SERVICE_ACCOUNT_PROJECT:SERVICE_ACCOUNT_NAME. The email should contain the IdP prefix for the user.
--role string Role name to assign to the member.
GDCLOUD 전체 플래그
이러한 플래그는 모든 명령어에서 사용할 수 있습니다(--configuration, --format, --help, --project, --quiet).
[[["이해하기 쉬움","easyToUnderstand","thumb-up"],["문제가 해결됨","solvedMyProblem","thumb-up"],["기타","otherUp","thumb-up"]],[["이해하기 어려움","hardToUnderstand","thumb-down"],["잘못된 정보 또는 샘플 코드","incorrectInformationOrSampleCode","thumb-down"],["필요한 정보/샘플이 없음","missingTheInformationSamplesINeed","thumb-down"],["번역 문제","translationIssue","thumb-down"],["기타","otherDown","thumb-down"]],["최종 업데이트: 2025-09-04(UTC)"],[],[],null,["# gdcloud projects add-iam-policy-binding\n\nNAME\n----\n\ngdcloud projects add-iam-policy-binding - Grant a role to a member in a project.\n\nSYNOPSIS\n--------\n\n gdcloud projects add-iam-policy-binding PROJECT_ID [flags]\n\nDESCRIPTION\n-----------\n\nGrant a role to a member in a project. The member can either be a human user or a service account. The name of the binding is auto-generated.\n\n### EXAMPLES\n\n\n To grant the role \"pr-test-role\" for user \"test-user@example.com\" with IdP prefix \"fop\" in project \"iam-test\", run:\n\n gdcloud projects add-iam-policy-binding iam-test --role=pr-test-role --member=user:fop-test-user@example.com\n\n To grant the role \"pr-test-role\" for service account \"test-sa\" of project \"test-sa-project\" in the project \"iam-test\", run:\n\n gdcloud projects add-iam-policy-binding iam-test --role=pr-test-role --member=serviceAccount:test-sa-project:test-sa\n\n### REQUIRED FLAGS\n\n --member string Member to add the binding for, defined by either user:EMAIL or serviceAccount:SERVICE_ACCOUNT_PROJECT:SERVICE_ACCOUNT_NAME. The email should contain the IdP prefix for the user.\n --role string Role name to assign to the member.\n\n### GDCLOUD WIDE FLAGS\n\nThese flags are available to all commands: `--configuration`, `--format`, `--help`, `--project`, `--quiet`.\n\nFor more information, see the [gdcloud CLI reference overview](/distributed-cloud/hosted/docs/latest/appliance/resources/gdcloud-reference/gdcloud) page."]]