gcloud iam oauth-clients update (OAUTH_CLIENT : --location=LOCATION) [--allowed-grant-types=[ALLOWED_GRANT_TYPES,…]] [--allowed-redirect-uris=[ALLOWED_REDIRECT_URIS,…]] [--allowed-scopes=[ALLOWED_SCOPES,…]] [--description=DESCRIPTION] [--disabled] [--display-name=DISPLAY_NAME] [GCLOUD_WIDE_FLAG …]
my-oauth-client in the default project:
gcloud iam oauth-clients update my-oauth-client --location="global" --display-name="My oauth client" --description="My oauth client description" --disabled --allowed-grant-types="authorization-code-grant,refresh-token-grant" --allowed-scopes="https://www.googleapis.com/auth/cloud-platform\
,openid" --allowed-redirect-uris="http://localhost/"
To set the project attribute:
oauth_client on the command line with a fully
specified name;
--project on the command line;
core/project.
OAUTH_CLIENT
To set the oauth_client attribute:
oauth_client on the command line.
--location=LOCATIONlocation attribute:
oauth_client on the command line with a fully
specified name;
--location on the command line.
--allowed-grant-types=[ALLOWED_GRANT_TYPES,…]authorization-code-grant
refresh-token-grant
--allowed-redirect-uris=[ALLOWED_REDIRECT_URIS,…]--allowed-scopes=[ALLOWED_SCOPES,…]https://www.googleapis.com/auth/cloud-platform: View, edit,
configure, and delete your Google Cloud data, and view the email address for
your Google Account.
openid: Associate you with your personal info on Google Cloud.
email: The OAuth client can read a federated identity's email
address.
groups: The OAuth client can read a federated identity's groups.
--description=DESCRIPTION--disabled--no-disabled to enable a disabled OAuth client.
--display-name=DISPLAY_NAME--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 oauth-clients 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.