gcloud iam workforce-pools create (WORKFORCE_POOL : --location=LOCATION) --organization=ORGANIZATION [--allowed-services=[domain=DOMAIN]] [--async] [--description=DESCRIPTION] [--disable-programmatic-signin] [--disabled] [--display-name=DISPLAY_NAME] [--session-duration=SESSION_DURATION] [GCLOUD_WIDE_FLAG …]
my-workforce-pool in the organization
12345:
gcloud iam workforce-pools create my-workforce-pool --organization=12345
The following command creates a workforce pool with ID
my-workforce-pool with explicit values for all required and
optional parameters:
gcloud iam workforce-pools create my-workforce-pool --organization=12345 --location=global --display-name="My Workforce Pool" --description="My workforce pool
description." --session-duration="7200s" --disabledWORKFORCE_POOL
To set the workforce_pool attribute:
workforce_pool on the command line.
--location=LOCATIONlocation attribute:
workforce_pool on the command line with a
fully specified name;
--location on the command line.
--organization=ORGANIZATION--allowed-services=[domain=DOMAIN]domain and value as the domain of
the service allowed for web sign-in. If not set, by default all the services are
allowed.
--async--description=DESCRIPTION--disable-programmatic-signin--disabled--display-name=DISPLAY_NAME--session-duration=SESSION_DURATION--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 iam workforce-pools creategcloud beta iam workforce-pools 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 2026-05-27 UTC.