gdcloud organizations add-iam-policy-binding

NAME

gdcloud organizations add-iam-policy-binding – Einem Mitglied in einer Organisation eine Rolle zuweisen

SYNOPSIS

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

BESCHREIBUNG

Weisen Sie einem Mitglied in einer Organisation eine Rolle zu. Das Mitglied kann entweder ein menschlicher Nutzer oder ein Dienstkonto sein. Der Name der Bindung wird automatisch generiert.

BEISPIELE


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

ERFORDERLICHE FLAGS

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

Diese Flags sind für alle Befehle verfügbar: --configuration, --format, --help, --project, --quiet.

Weitere Informationen finden Sie auf der Seite Übersicht über die Referenz zur gdcloud CLI.