gdcloud organizations add-iam-policy-binding

NOMBRE

gdcloud organizations add-iam-policy-binding: Otorga un rol a un miembro de una organización

SINOPSIS

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

DESCRIPCIÓN

Otorga un rol a un miembro de una organización. El miembro puede ser un usuario humano o una cuenta de servicio. El nombre de la vinculación se genera automáticamente.

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

MARCAS OBLIGATORIAS

      --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.

MARCAS GENERALES DE GCLOUD

Estas marcas están disponibles para todos los comandos: --configuration, --format, --help, --project y --quiet.

Para obtener más información, consulta la página de descripción general de la referencia de la CLI de gcloud.