1
0
Fork 0
mirror of https://github.com/imjasonh/gcloud-help synced 2026-07-15 17:35:31 +00:00
gcloud-help/gcloud/beta/identity/groups/memberships/add
2022-03-01 21:43:54 +00:00

60 lines
2 KiB
Text

NAME
gcloud beta identity groups memberships add - create a new membership in an
existing group
SYNOPSIS
gcloud beta identity groups memberships add --group-email=GROUP_EMAIL
--member-email=MEMBER_EMAIL [--expiration=EXPIRATION]
[--organization=ORGANIZATION] [--roles=[ROLES,...]]
[GCLOUD_WIDE_FLAG ...]
DESCRIPTION
(BETA) Create a new membership in an existing group.
EXAMPLES
To create a new membership in a group:
$ gcloud beta identity groups memberships add \
--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 from now, for example '30d', '6m', '3y' for 30 days, 6 months,
or 3 years respectively.
--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 the cloudidentity/v1beta1 API. The full documentation for
this API can be found at: https://cloud.google.com/identity/
NOTES
This command is currently in beta and might change without notice. These
variants are also available:
$ gcloud identity groups memberships add
$ gcloud alpha identity groups memberships add