gdcloud organizations add-iam-policy-binding

NOME

gdcloud organizations add-iam-policy-binding - Grant a role to a member in an organization

SYNOPSIS

gdcloud organizations add-iam-policy-binding ORGANIZATION_ID [flags]

DESCRIÇÃO

Conceder uma função a um membro numa organização. O membro pode ser um utilizador humano ou uma conta de serviço. O nome da associação é gerado automaticamente.

EXEMPLOS


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

SINALIZADORES OBRIGATÓRIOS

      --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 WIDE FLAGS

Estas marcas estão disponíveis para todos os comandos: --configuration, --format, --help, --project e --quiet.

Para mais informações, consulte a página Vista geral da referência da CLI gdcloud.