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/current/help/man/man1/gcloud_beta_identity_groups_preview.1
.TH "GCLOUD_BETA_IDENTITY_GROUPS_PREVIEW" 1



.SH "NAME"
.HP
gcloud beta identity groups preview \- retrieve a list of users in a customer account using CEL query



.SH "SYNOPSIS"
.HP
\f5gcloud beta identity groups preview\fR \fB\-\-customer\fR=\fICUSTOMER\fR [\fB\-\-custom\-field\-mask\fR=[\fIcustom\-mask\fR,...]] [\fB\-\-max\-results\fR=\fIMAX_RESULTS\fR;\ default=100] [\fB\-\-page\-token\fR=\fIPAGE_TOKEN\fR] [\fB\-\-projection\fR=\fIPROJECTION\fR;\ default="basic"] [\fB\-\-query\fR=\fIQUERY\fR] [\fB\-\-view\-type\fR=\fIVIEW_TYPE\fR;\ default="admin\-view"] [\fIGCLOUD_WIDE_FLAG\ ...\fR]



.SH "DESCRIPTION"

\fB(BETA)\fR Retrieve a list of users in a customer account using CEL query.



.SH "EXAMPLES"

To retrieve a list of user in a customer and filter it with a query, run:

.RS 2m
$ gcloud beta identity groups preview \e
    \-\-query="user.locations.exists(loc, loc.desk_code == 'abc')" \e
    \-\-customer=A1234abcd
.RE

To retrieve a list of users with only fullName and primaryEMail fields, run:

.RS 2m
$ gcloud beta identity groups preview \e
    \-\-query="user.locations.exists(loc, loc.desk_code == 'abc')" \e
    \-\-customer=A1234abcd \e
    \-\-format="flattened(nextPageToken, users[].primaryEmail, \e
users[].name.fullName)"
.RE



.SH "REQUIRED FLAGS"

.RS 2m
.TP 2m
\fB\-\-customer\fR=\fICUSTOMER\fR

The customer ID for the customer's G Suite account.


.RE
.sp

.SH "OPTIONAL FLAGS"

.RS 2m
.TP 2m
\fB\-\-custom\-field\-mask\fR=[\fIcustom\-mask\fR,...]

A comma\-separated list of schema names. All fields from these schemas are
fetched. This should only be set when \-\-projection=custom.

.TP 2m
\fB\-\-max\-results\fR=\fIMAX_RESULTS\fR; default=100

Maximum number of results to return. Acceptable values are 1 to 500, inclusive.

.TP 2m
\fB\-\-page\-token\fR=\fIPAGE_TOKEN\fR

Token to specify next page in the list.

.TP 2m
\fB\-\-projection\fR=\fIPROJECTION\fR; default="basic"

Subsets of fields to fetch for this user. \fIPROJECTION\fR must be one of:
\fBbasic\fR, \fBfull\fR, \fBcustom\fR.

.TP 2m
\fB\-\-query\fR=\fIQUERY\fR

Query string using CEL and supported user attributes

.TP 2m
\fB\-\-view\-type\fR=\fIVIEW_TYPE\fR; default="admin\-view"

Whether to fetch the administrator\-only or domain\-wide public view of the
user. \fIVIEW_TYPE\fR must be one of: \fBadmin\-view\fR, \fBdomain\-public\fR.


.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 "NOTES"

This command is currently in beta and might change without notice. This variant
is also available:

.RS 2m
$ gcloud alpha identity groups preview
.RE