gcloud iam workforce-pools update (WORKFORCE_POOL : --location=LOCATION) [--async] [--description=DESCRIPTION] [--disable-programmatic-signin] [--disabled] [--display-name=DISPLAY_NAME] [--session-duration=SESSION_DURATION] [GCLOUD_WIDE_FLAG …]
my-workforce-pool with explicit values for
all required and optional parameters:
gcloud iam workforce-pools update my-workforce-pool --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.
--async--description=DESCRIPTION--disable-programmatic-signin--no-disable-security-token-exchange to enable programmatic
sign-in. For more information, refer to Obtain short-lived tokens for workforce
identity federation at https://cloud.google.com/iam/docs/workforce-obtaining-short-lived-credentials
--disabled--no-disabled to enable a disabled pool.
--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.
iam/v1 API. The full documentation for this
API can be found at: https://cloud.google.com/iam/
gcloud alpha iam workforce-pools updategcloud beta iam workforce-pools update
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.