名前
gdcloud organizations add-iam-policy-binding - 組織内のメンバーにロールを付与する
概要
gdcloud organizations add-iam-policy-binding ORGANIZATION_ID [flags]
説明
組織内のメンバーにロールを付与します。メンバーは、人間のユーザーまたはサービス アカウントのいずれかです。バインディングの名前は自動的に生成されます。
EXAMPLES
To grant the role "pr-test-role" for user "test-user@example.com" with IdP prefix "fop" in organization "org-1", run:
gdcloud organizations add-iam-policy-binding org-1 --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 organization "org-1", run:
gdcloud organizations add-iam-policy-binding org-1 --role=pr-test-role --member=serviceAccount:test-sa-project:test-sa
必須フラグ
--member string The member to add binding for, defined by either user:EMAIL or serviceAccount:SERVICE_ACCOUNT_PROJECT:SERVICE_ACCOUNT_NAME. The email must contain the IdP prefix for the user.
--role string Role name to assign to the member.
GDCLOUD ワイドフラグ
これらのフラグは、すべてのコマンドで使用できます: --configuration
、--format
、--help
、--project
、--quiet
。
詳細については、gdcloud CLI リファレンスの概要ページをご覧ください。