gdcloud projects add-iam-policy-binding

NOM

gdcloud projects add-iam-policy-binding : attribue un rôle à un membre d'un projet.

SYNOPSIS

gdcloud projects add-iam-policy-binding PROJECT_ID [flags]

DESCRIPTION

Attribuez un rôle à un membre dans un projet. Le membre peut être un utilisateur ou un compte de service. Le nom de la liaison est généré automatiquement.

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

DRAPEAUX REQUIS

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

OPTIONS GCLOUD GÉNÉRALES

Ces options sont disponibles pour toutes les commandes : --configuration, --format, --help, --project, --quiet.

Pour en savoir plus, consultez la page de présentation de la documentation de référence de la gcloud CLI.