- NAME
-
- gcloud alpha agent-identity auth-providers update - update an auth provider
- SYNOPSIS
-
-
gcloud alpha agent-identity auth-providers updateAUTH_PROVIDER[--description=DESCRIPTION] [--location=LOCATION] [--request-id=REQUEST_ID] [--allowed-scopes=[ALLOWED_SCOPES,…] |--add-allowed-scopes=[ADD_ALLOWED_SCOPES,…]--clear-allowed-scopes|--remove-allowed-scopes=[REMOVE_ALLOWED_SCOPES,…]] [--blocked-scopes=[BLOCKED_SCOPES,…] |--add-blocked-scopes=[ADD_BLOCKED_SCOPES,…]--clear-blocked-scopes|--remove-blocked-scopes=[REMOVE_BLOCKED_SCOPES,…]] [--clear-auth-provider-type-params--api-key=API_KEY|--connector-reference-auth-provider=CONNECTOR_REFERENCE_AUTH_PROVIDER--connector-reference-auth-provider-authorization-details=CONNECTOR_REFERENCE_AUTH_PROVIDER_AUTHORIZATION_DETAILS|--three-legged-oauth-authorization-url=THREE_LEGGED_OAUTH_AUTHORIZATION_URL--three-legged-oauth-client-id=THREE_LEGGED_OAUTH_CLIENT_ID--three-legged-oauth-client-secret=THREE_LEGGED_OAUTH_CLIENT_SECRET--three-legged-oauth-default-continue-uri=THREE_LEGGED_OAUTH_DEFAULT_CONTINUE_URI--[no-]three-legged-oauth-enable-pkce--three-legged-oauth-token-url=THREE_LEGGED_OAUTH_TOKEN_URL|--two-legged-oauth-client-id=TWO_LEGGED_OAUTH_CLIENT_ID--two-legged-oauth-client-secret=TWO_LEGGED_OAUTH_CLIENT_SECRET--two-legged-oauth-token-url=TWO_LEGGED_OAUTH_TOKEN_URL|--xaa-auth-provider-additional-parameters=[XAA_AUTH_PROVIDER_ADDITIONAL_PARAMETERS,…] |--update-xaa-auth-provider-additional-parameters=[UPDATE_XAA_AUTH_PROVIDER_ADDITIONAL_PARAMETERS,…]--clear-xaa-auth-provider-additional-parameters|--remove-xaa-auth-provider-additional-parameters=REMOVE_XAA_AUTH_PROVIDER_ADDITIONAL_PARAMETERS--xaa-auth-provider-client-assertion-jwt-id=XAA_AUTH_PROVIDER_CLIENT_ASSERTION_JWT_ID|--xaa-auth-provider-client-secret=XAA_AUTH_PROVIDER_CLIENT_SECRET--xaa-auth-provider-client-secret-id=XAA_AUTH_PROVIDER_CLIENT_SECRET_ID--xaa-auth-provider-custom-issuer=XAA_AUTH_PROVIDER_CUSTOM_ISSUER--xaa-auth-provider-custom-issuer-token-url=XAA_AUTH_PROVIDER_CUSTOM_ISSUER_TOKEN_URL--xaa-auth-provider-id-token-input-jag-additional-claims=XAA_AUTH_PROVIDER_ID_TOKEN_INPUT_JAG_ADDITIONAL_CLAIMS--clear-xaa-auth-provider-id-token-input-jag|--xaa-auth-provider-id-token-input-jag=XAA_AUTH_PROVIDER_ID_TOKEN_INPUT_JAG] [--labels=[LABELS,…] |--update-labels=[UPDATE_LABELS,…]--clear-labels|--remove-labels=REMOVE_LABELS] [--workload-ids=[WORKLOAD_IDS,…] |--add-workload-ids=[ADD_WORKLOAD_IDS,…]--clear-workload-ids|--remove-workload-ids=[REMOVE_WORKLOAD_IDS,…]] [GCLOUD_WIDE_FLAG …]
-
- DESCRIPTION
-
(ALPHA)Update the parameters of a single auth provider. - EXAMPLES
-
To update the description of auth provider 'my-auth-provider' in location
'us-central1' and project 'my-project', run:
gcloud alpha agent-identity auth-providers update my-auth-provider --location=us-central1 --project=my-project --description="New description" - POSITIONAL ARGUMENTS
-
-
AuthProvider resource - Identifier. The full resource name of the auth provider.
Format: projects/{project}/locations/{location}/authProviders/{auth_provider}
This represents a Cloud resource. (NOTE) Some attributes are not given arguments
in this group but can be set in other ways.
To set the
projectattribute:-
provide the argument
auth_provideron the command line with a fully specified name; -
provide the argument
--projecton the command line; -
set the property
core/project.
To set the
locationattribute:-
provide the argument
auth_provideron the command line with a fully specified name; -
provide the argument
--locationon the command line.
This must be specified.
AUTH_PROVIDER-
ID of the authProvider or fully qualified identifier for the authProvider.
To set the
auth_providerattribute:-
provide the argument
auth_provideron the command line.
-
provide the argument
-
provide the argument
-
AuthProvider resource - Identifier. The full resource name of the auth provider.
Format: projects/{project}/locations/{location}/authProviders/{auth_provider}
This represents a Cloud resource. (NOTE) Some attributes are not given arguments
in this group but can be set in other ways.
- FLAGS
-
--description=DESCRIPTION- Description of the resource. Must be less than 256 characters.
--location=LOCATION- For resources [auth_provider, xaa-auth-provider-id-token-input-jag], provides fallback value for resource location attribute. When the resource's full URI path is not provided, location will fallback to this flag value.
--request-id=REQUEST_ID-
An optional request ID to identify requests. Specify a unique request ID so that
if you must retry your request, the server will know to ignore the request if it
has already been completed. The server will guarantee that for at least 60
minutes since the first request.
For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments.
The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
-
Update allowed_scopes.
At most one of these can be specified:
--allowed-scopes=[ALLOWED_SCOPES,…]- Set allowed_scopes to new value.
-
Or at least one of these can be specified:
--add-allowed-scopes=[ADD_ALLOWED_SCOPES,…]- Add new value to allowed_scopes list.
-
At most one of these can be specified:
--clear-allowed-scopes- Clear allowed_scopes value and set to empty list.
--remove-allowed-scopes=[REMOVE_ALLOWED_SCOPES,…]- Remove existing value from allowed_scopes list.
-
Update blocked_scopes.
At most one of these can be specified:
--blocked-scopes=[BLOCKED_SCOPES,…]- Set blocked_scopes to new value.
-
Or at least one of these can be specified:
--add-blocked-scopes=[ADD_BLOCKED_SCOPES,…]- Add new value to blocked_scopes list.
-
At most one of these can be specified:
--clear-blocked-scopes- Clear blocked_scopes value and set to empty list.
--remove-blocked-scopes=[REMOVE_BLOCKED_SCOPES,…]- Remove existing value from blocked_scopes list.
- Required. Parameters specific to the auth provider type.
--clear-auth-provider-type-params- Set authProvider.authProviderTypeParams back to default value.
-
Arguments for the type.
At most one of these can be specified:
- Configuration for API key authentication.
--api-key=API_KEY- The API key for this auth provider.
- Configuration parameters for the Connector Reference auth provider.
--connector-reference-auth-provider=CONNECTOR_REFERENCE_AUTH_PROVIDER- The name of the referenced connector.
- Rich Authorization Requests (RFC 9396) detailing targeted OAuth resources/scopes, formatted as a JSON array of JSON objects.
- Configuration for 3-legged OAuth (3LO) authentication.
- The authorization endpoint to send users to for consenting to delegate to the agent. For example, "https://auth.atlassian.com/authorize".
--three-legged-oauth-client-id=THREE_LEGGED_OAUTH_CLIENT_ID- The client ID of the OAuth client.
--three-legged-oauth-client-secret=THREE_LEGGED_OAUTH_CLIENT_SECRET- The client secret of the OAuth client.
--three-legged-oauth-default-continue-uri=THREE_LEGGED_OAUTH_DEFAULT_CONTINUE_URI- The default continue URI for the 3LO flow, used when no continue URI is provided in the RetrieveCredentials request.
--[no-]three-legged-oauth-enable-pkce-
Enables Proof Key for Code Exchange (PKCE) for the OAuth flow to prevent
authorization code interception attacks. Use
--three-legged-oauth-enable-pkceto enable and--no-three-legged-oauth-enable-pkceto disable. --three-legged-oauth-token-url=THREE_LEGGED_OAUTH_TOKEN_URL- The token endpoint for requesting tokens on behalf of an end user. For example, "https://auth.atlassian.com/oauth/token".
- Configuration for 2-legged OAuth (2LO) authentication.
--two-legged-oauth-client-id=TWO_LEGGED_OAUTH_CLIENT_ID- The client ID of the OAuth client.
--two-legged-oauth-client-secret=TWO_LEGGED_OAUTH_CLIENT_SECRET- The client secret of the OAuth client.
--two-legged-oauth-token-url=TWO_LEGGED_OAUTH_TOKEN_URL- The token endpoint of the OAuth client.
- Configuration parameters for the Cross-App Access auth provider.
-
Update xaa_auth_provider_additional_parameters.
At most one of these can be specified:
--xaa-auth-provider-additional-parameters=[XAA_AUTH_PROVIDER_ADDITIONAL_PARAMETERS,…]-
Set xaa_auth_provider_additional_parameters to new value. Additional parameters
to be passed to the token endpoint.
KEY-
Sets
KEYvalue. VALUE-
Sets
VALUEvalue.
Shorthand Example:--xaa-auth-provider-additional-parameters=string=string
JSON Example:--xaa-auth-provider-additional-parameters='{"string": "string"}'
File Example:--xaa-auth-provider-additional-parameters=path_to_file.(yaml|json)
-
Or at least one of these can be specified:
--update-xaa-auth-provider-additional-parameters=[UPDATE_XAA_AUTH_PROVIDER_ADDITIONAL_PARAMETERS,…]-
Update xaa_auth_provider_additional_parameters value or add key value pair.
Additional parameters to be passed to the token endpoint.
KEY-
Sets
KEYvalue. VALUE-
Sets
VALUEvalue.
Shorthand Example:--update-xaa-auth-provider-additional-parameters=string=string
JSON Example:--update-xaa-auth-provider-additional-parameters='{"string": "string"}'
File Example:--update-xaa-auth-provider-additional-parameters=path_to_file.(yaml|json)
-
At most one of these can be specified:
--clear-xaa-auth-provider-additional-parameters- Clear xaa_auth_provider_additional_parameters value and set to empty map.
--remove-xaa-auth-provider-additional-parameters=REMOVE_XAA_AUTH_PROVIDER_ADDITIONAL_PARAMETERS-
Remove existing value from map xaa_auth_provider_additional_parameters. Sets
remove_xaa_auth_provider_additional_parametersvalue.Shorthand Example:--remove-xaa-auth-provider-additional-parameters=string,stringJSON Example:--remove-xaa-auth-provider-additional-parameters=["string"]
File Example:--remove-xaa-auth-provider-additional-parameters=path_to_file.(yaml|json)
-
Arguments for the client authentication.
At most one of these can be specified:
- Configuration for client ID and client assertion JWT authentication.
--xaa-auth-provider-client-assertion-jwt-id=XAA_AUTH_PROVIDER_CLIENT_ASSERTION_JWT_ID- The client identifier.
- Configuration for client ID and client secret authentication.
--xaa-auth-provider-client-secret=XAA_AUTH_PROVIDER_CLIENT_SECRET- The client secret.
--xaa-auth-provider-client-secret-id=XAA_AUTH_PROVIDER_CLIENT_SECRET_ID- The client identifier.
-
Arguments for the issuer type.
At most one of these can be specified:
- Configuration for a custom or third-party authorization server issuer.
--xaa-auth-provider-custom-issuer=XAA_AUTH_PROVIDER_CUSTOM_ISSUER- The issuer identifier of the target Authorization Server.
--xaa-auth-provider-custom-issuer-token-url=XAA_AUTH_PROVIDER_CUSTOM_ISSUER_TOKEN_URL- The token endpoint of the target OAuth authorization server to retrieve resource tokens.
-
Arguments for the identity source.
At most one of these can be specified:
- Defines how to process an input ID token to obtain an ID-JAG.
--xaa-auth-provider-id-token-input-jag-additional-claims=XAA_AUTH_PROVIDER_ID_TOKEN_INPUT_JAG_ADDITIONAL_CLAIMS- Optional additional claims to include when fetching an ID-JAG.
-
Arguments for the id jag source.
At most one of these can be specified:
-
Update xaa_auth_provider_id_token_input_jag.
At most one of these can be specified:
--clear-xaa-auth-provider-id-token-input-jag- Clear xaa_auth_provider_id_token_input_jag value and set to null.
-
AuthProvider resource - Set xaa_auth_provider_id_token_input_jag to new value.
The resource name of the ID-JAG auth provider. Format: "projects/{project}/locations/{location}/authProviders/{auth_provider}" This represents a Cloud resource. (NOTE) Some attributes are not given arguments in this group but can be set in other ways.
To set the
projectattribute:-
provide the argument
--xaa-auth-provider-id-token-input-jagon the command line with a fully specified name; -
provide the argument
--projecton the command line; -
set the property
core/project.
To set the
locationattribute:-
provide the argument
--xaa-auth-provider-id-token-input-jagon the command line with a fully specified name; -
provide the argument
--locationon the command line.
-
provide the argument
--xaa-auth-provider-id-token-input-jag=XAA_AUTH_PROVIDER_ID_TOKEN_INPUT_JAG-
ID of the authProvider or fully qualified identifier for the authProvider.
To set the
auth-providerattribute:-
provide the argument
--xaa-auth-provider-id-token-input-jagon the command line.
-
provide the argument
-
Update xaa_auth_provider_id_token_input_jag.
-
Update labels.
At most one of these can be specified:
--labels=[LABELS,…]-
Set labels to new value. Labels as key-value pairs.
KEY-
Keys must start with a lowercase character and contain only hyphens
(
-), underscores (_), lowercase characters, and numbers. VALUE-
Values must contain only hyphens (
-), underscores (_), lowercase characters, and numbers.
Shorthand Example:--labels=string=string
JSON Example:--labels='{"string": "string"}'
File Example:--labels=path_to_file.(yaml|json)
-
Or at least one of these can be specified:
--update-labels=[UPDATE_LABELS,…]-
Update labels value or add key value pair. Labels as key-value pairs.
KEY-
Keys must start with a lowercase character and contain only hyphens
(
-), underscores (_), lowercase characters, and numbers. VALUE-
Values must contain only hyphens (
-), underscores (_), lowercase characters, and numbers.
Shorthand Example:--update-labels=string=string
JSON Example:--update-labels='{"string": "string"}'
File Example:--update-labels=path_to_file.(yaml|json)
-
At most one of these can be specified:
--clear-labels- Clear labels value and set to empty map.
--remove-labels=REMOVE_LABELS-
Remove existing value from map labels. Sets
remove_labelsvalue.Shorthand Example:--remove-labels=string,stringJSON Example:--remove-labels=["string"]
File Example:--remove-labels=path_to_file.(yaml|json)
-
Update workload_ids.
At most one of these can be specified:
--workload-ids=[WORKLOAD_IDS,…]- Set workload_ids to new value.
-
Or at least one of these can be specified:
--add-workload-ids=[ADD_WORKLOAD_IDS,…]- Add new value to workload_ids list.
-
At most one of these can be specified:
--clear-workload-ids- Clear workload_ids value and set to empty list.
--remove-workload-ids=[REMOVE_WORKLOAD_IDS,…]- Remove existing value from workload_ids list.
- 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
$ gcloud helpfor details. - API REFERENCE
-
This command uses the
agentidentity/v1alphaAPI. The full documentation for this API can be found at: https://cloud.google.com/iam/docs/ - NOTES
-
This command is currently in alpha and might change without notice. If this
command fails with API permission errors despite specifying the correct project,
you might be trying to access an API with an invitation-only early access
allowlist. These variants are also available:
gcloud agent-identity auth-providers updategcloud beta agent-identity auth-providers update
gcloud alpha agent-identity auth-providers 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-11-10 UTC.