gcloud alpha identity groups memberships add

NAME
gcloud alpha identity groups memberships add - create a new membership in an existing group
SYNOPSIS
gcloud alpha identity groups memberships add--group-email=GROUP_EMAIL--member-email=MEMBER_EMAIL[--expiration=EXPIRATION][--organization=ORGANIZATION][--roles=[ROLES,…]][GCLOUD_WIDE_FLAG]
DESCRIPTION
(ALPHA) Create a new membership in an existing group.
EXAMPLES
To create a new membership in a group:
gcloudalphaidentitygroupsmembershipsadd--group-email="eng-discuss@foo.com"--member-email="user@foo.com"
REQUIRED FLAGS
--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.
OPTIONAL FLAGS
--expiration=EXPIRATION
Optional time of expiration for the membership. This is given as a duration fromnow, for example '30d', '6m', '3y' for 30 days, 6 months, or 3 yearsrespectively.
--organization=ORGANIZATION
The organization ID of the group the new membership is being added to.
--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.
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$gcloud help for details.

API REFERENCE
This command uses thecloudidentity/v1alpha1 API. The fulldocumentation for this API can be found at:https://cloud.google.com/identity/
NOTES
This command is currently in alpha and might change without notice. If thiscommand fails with API permission errors despite specifying the correct project,you might be trying to access an API with an invitation-only early accessallowlist. These variants are also available:
gcloudidentitygroupsmembershipsadd
gcloudbetaidentitygroupsmembershipsadd

Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025-05-07 UTC.