gcloud identity groups memberships add - create a new membership in an existing group
gcloud identity groups memberships add --group-email=GROUP_EMAIL --member-email=MEMBER_EMAIL [--expiration=EXPIRATION] [--roles=[ROLES,...]] [GCLOUD_WIDE_FLAG ...]
Create a new membership in an existing group.
To create a new membership in a group:
$ gcloud identity groups memberships add \ --group-email="eng-discuss@foo.com" \ --member-email="user@foo.com"
- --group-email=GROUP_EMAIL
The email address of the group the new membership is being added to.
- --member-email=MEMBER_EMAIL
The email address of the group or user being added to a group.
- --expiration=EXPIRATION
Optional time of expiration for the membership. This is given as a duration from now, for example '30d', '6m', '3y' for 30 days, 6 months, or 3 years respectively.
- --roles=[ROLES,...]
A comma-separated list of roles for a member within the Group. If not specified, MEMBER will be used as a default value.
These flags are available to all commands: --access-token-file, --account, --billing-project, --configuration, --flags-file, --flatten, --format, --help, --impersonate-service-account, --log-http, --project, --quiet, --trace-token, --user-output-enabled, --verbosity.
Run $ gcloud help for details.
This command uses the cloudidentity/v1 API. The full documentation for this API can be found at: https://cloud.google.com/identity/
These variants are also available:
$ gcloud alpha identity groups memberships add
$ gcloud beta identity groups memberships add