- NAME
-
- gcloud identity groups create - create a new group
- SYNOPSIS
-
-
gcloud identity groups create
EMAIL
(--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:
gcloud identity groups create eng-discuss@example.com --organization="example.com"
To create a new Google Groups discussion group with a display name and descripton:
gcloud identity groups create eng-discuss@example.com --organization="example.com" --display-name="Engineer Discuss" --description="Group for engineering discussions"
To create a new security group:
gcloud identity groups create security-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 specified either 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. For example, you can include information about who should join the Group, the types of messages to send to the Group, links to FAQs about the Group, or related Groups. 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 of
the group being created.
WITH_INITIAL_OWNER
must be one of:empty
- The creator of the group will not be the owner of the group. This is the default for dynamic groups.
with-initial-owner
- The creator of the group will be the owner of the group. This is the default for non-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 labels
for the type of group being created.
GROUP_TYPE
must be one 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 "--labels cloudidentity.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 help
for details. - API REFERENCE
-
This command uses the
cloudidentity/v1
API. The full documentation for this API can be found at: https://cloud.google.com/identity/ - NOTES
-
These variants are also available:
gcloud alpha identity groups create
gcloud beta identity groups create
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-02-06 UTC.