gcloud identity groups create Stay organized with collections Save and categorize content based on your preferences.
- NAME
- gcloud identity groups create - create a new group
- SYNOPSIS
gcloud identity groups createEMAIL(--customer=CUSTOMER|--organization=ORGANIZATION)[--description=DESCRIPTION][--display-name=DISPLAY_NAME][--dynamic-user-query=DYNAMIC_USER_QUERY][--with-initial-owner=WITH_INITIAL_OWNER][--group-type=GROUP_TYPE; default="discussion" |--labels=LABELS][GCLOUD_WIDE_FLAG …]
- DESCRIPTION
- Create a new group.
- EXAMPLES
- To quickly create a new Google Groups discussion group with default settings:
gcloudidentitygroupscreateeng-discuss@example.com--organization="example.com"To create a new Google Groups discussion group with a display name anddescripton:
gcloudidentitygroupscreateeng-discuss@example.com--organization="example.com"--display-name="Engineer Discuss"--description="Group for engineering discussions"To create a new security group:
gcloudidentitygroupscreatesecurity-group@example.com--organization="example.com"--group-type="security"--display-name="Security Group"--description="Description of Security Group" - POSITIONAL ARGUMENTS
EMAIL- The email address of the group to be created.
- REQUIRED FLAGS
- Exactly one of these must be specified:
--customer=CUSTOMER- The customer ID for the customer\'s G Suite account. Example of customer:"C01k1e9nw"
--organization=ORGANIZATION- The organization the Group being created belongs to. This can be specifiedeither as an ID ("123456789") or as the associated domain ("example.com").
- Exactly one of these must be specified:
- OPTIONAL FLAGS
--description=DESCRIPTION- An extended description to help users determine the purpose of a Group. Forexample, you can include information about who should join the Group, the typesof messages to send to the Group, links to FAQs about the Group, or relatedGroups. Maximum length is 4,096 characters.
--display-name=DISPLAY_NAME- The Group's display name.
--dynamic-user-query=DYNAMIC_USER_QUERY- Query that determines the memberships of the dynamic group.
Example of a query:--dynamic-user-query="user.organizations.exists(org,org.title=='SWE')"
--with-initial-owner=WITH_INITIAL_OWNER- If specified the user making the request will be added as the initial owner ofthe group being created.
WITH_INITIAL_OWNERmust be oneof:empty- The creator of the group will not be the owner of the group. This is the defaultfor dynamic groups.
with-initial-owner- The creator of the group will be the owner of the group. This is the default fornon-dynamic groups.
- At most one of these can be specified:
--group-type=GROUP_TYPE; default="discussion"- The type of group to create. Setting group-type will add the appropriate labelsfor the type of group being created.
GROUP_TYPEmust beone of:discussion- Creates a Google Groups discussion group.
dynamic- Creates a dynamic group.
security- Creates a security group.
--labels=LABELS- Labels for group resource. Example of labels "--labelscloudidentity.googleapis.com/groups.discussion_forum"
- 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 helpfor details. - API REFERENCE
- This command uses the
cloudidentity/v1API. The full documentationfor this API can be found at:https://cloud.google.com/identity/ - NOTES
- These variants are also available:
gcloudalphaidentitygroupscreategcloudbetaidentitygroupscreate
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.