gcloud scc findings group [PARENT] [--compare-duration=COMPARE_DURATION] [--filter=FILTER] [--group-by=GROUP_BY] [--location=LOCATION; default="global"] [--page-size=PAGE_SIZE] [--page-token=PAGE_TOKEN] [--read-time=READ_TIME] [--source=SOURCE; default="-"] [GCLOUD_WIDE_FLAG …]
123456 across all sources by
their category:
gcloud scc findings group 123456 --group-by="category"
Group findings under project example-project across all sources by
their category:
gcloud scc findings group projects/example-project --group-by="category"
Group findings under folders 456 across all sources by their
category:
gcloud scc findings group folders/456 --group-by="category"
Group findings under organization 123456 and source
5678, by their category:
gcloud scc findings group 123456 --source=5678 --group-by="category"
Group ACTIVE findings under organization 123456 and source
5678, by their category:
gcloud scc findings group 123456 --source=5678 --group-by="category" --filter="state=\"ACTIVE\""
Group findings under organization 123456 and
location=eu across all sources by their category:
gcloud scc findings group 123456 --group-by="category" --location=eugcloud scc command. Specify the
argument as either [RESOURCE_TYPE/RESOURCE_ID] or [RESOURCE_ID], as shown in the
preceding examples. This represents a Cloud resource.
PARENT]parent attribute:
parent on the command line;
gcloud config set
scc/parent if it is not specified in command line.
--compare-duration=COMPARE_DURATIONIf compare_duration is not specified, then the only possible state_change is 'UNUSED', which will be the state_change set for all findings present at read_time. If this field is set then 'state_change' must be a specified field in 'group_by'. See $ gcloud topic datetimes for information on supported duration formats.
--filter=FILTER--group-by=GROUP_BY--location=LOCATION; default="global"location
attribute can be provided as part of the fully specified resource name or with
the --location argument on the command line. The default location
is global.
NOTE: If you override the endpoint to a regional endpoint you must specify the correct data location using this flag. The default location on this command is unrelated to the default location that is specified when data residency controls are enabled for Security Command Center.
NOTE: If no location is specified, the default location isglobal
AND the request will be routed to the SCC V1 API. To use the SCC V2 API - please
explicitly specify the flag.
--page-size=PAGE_SIZE--page-token=PAGE_TOKEN--read-time=READ_TIME--source=SOURCE; default="-"--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.
gcloud alpha scc findings groupgcloud beta scc findings group
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 2026-05-27 UTC.