HEX
Server: Apache/2.4.65 (Ubuntu)
System: Linux ielts-store-v2 6.8.0-1036-gcp #38~22.04.1-Ubuntu SMP Thu Aug 14 01:19:18 UTC 2025 x86_64
User: root (0)
PHP: 7.2.34-54+ubuntu20.04.1+deb.sury.org+1
Disabled: pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,
Upload Files
File: //snap/google-cloud-cli/394/help/man/man1/gcloud_beta_identity_groups_memberships_add.1
.TH "GCLOUD_BETA_IDENTITY_GROUPS_MEMBERSHIPS_ADD" 1



.SH "NAME"
.HP
gcloud beta identity groups memberships add \- create a new membership in an existing group



.SH "SYNOPSIS"
.HP
\f5gcloud beta identity groups memberships add\fR \fB\-\-group\-email\fR=\fIGROUP_EMAIL\fR \fB\-\-member\-email\fR=\fIMEMBER_EMAIL\fR [\fB\-\-expiration\fR=\fIEXPIRATION\fR] [\fB\-\-organization\fR=\fIORGANIZATION\fR] [\fB\-\-roles\fR=[\fIROLES\fR,...]] [\fIGCLOUD_WIDE_FLAG\ ...\fR]



.SH "DESCRIPTION"

\fB(BETA)\fR Create a new membership in an existing group.



.SH "EXAMPLES"

To create a new membership in a group:

.RS 2m
$ gcloud beta identity groups memberships add \e
    \-\-group\-email="eng\-discuss@foo.com" \e
    \-\-member\-email="user@foo.com"
.RE



.SH "REQUIRED FLAGS"

.RS 2m
.TP 2m
\fB\-\-group\-email\fR=\fIGROUP_EMAIL\fR

The email address of the group the new membership is being added to.

.TP 2m
\fB\-\-member\-email\fR=\fIMEMBER_EMAIL\fR

The email address of the group or user being added to a group.


.RE
.sp

.SH "OPTIONAL FLAGS"

.RS 2m
.TP 2m
\fB\-\-expiration\fR=\fIEXPIRATION\fR

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.

.TP 2m
\fB\-\-organization\fR=\fIORGANIZATION\fR

The organization ID of the group the new membership is being added to.

.TP 2m
\fB\-\-roles\fR=[\fIROLES\fR,...]

A comma\-separated list of roles for a member within the Group. If not
specified, MEMBER will be used as a default value.


.RE
.sp

.SH "GCLOUD WIDE FLAGS"

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 \fB$ gcloud help\fR for details.



.SH "API REFERENCE"

This command uses the \fBcloudidentity/v1beta1\fR API. The full documentation
for this API can be found at: https://cloud.google.com/identity/



.SH "NOTES"

This command is currently in beta and might change without notice. These
variants are also available:

.RS 2m
$ gcloud identity groups memberships add
.RE

.RS 2m
$ gcloud alpha identity groups memberships add
.RE