In Agent Identity auth manager, you manage auth providers by editing their details, enabling or disabling them, or deleting them when they are no longer needed.
Before you begin
- Verify that you have chosen the correct authentication method .
- Verify that you have the roles required to complete this task .
Required roles
To get the permissions that
you need to manage Agent Identity auth providers,
ask your administrator to grant you the IAM Connector Editor
( roles/iamconnectors.editor
)
IAM role on the project.
For more information about granting roles, see Manage access to projects, folders, and organizations
.
This predefined role contains the permissions required to manage Agent Identity auth providers. To see the exact permissions that are required, expand the Required permissionssection:
Required permissions
The following permissions are required to manage Agent Identity auth providers:
-
iamconnectors.connectors.update -
iamconnectors.connectors.delete
You might also be able to get these permissions with custom roles or other predefined roles .
Edit an auth provider
To update the description or authentication details of an auth provider, use the Google Cloud console or the Google Cloud CLI.
Console
-
In the Google Cloud console, go to the Agent Registry page.
- Click the name of the agent whose auth provider that you want to manage.
- Click Identity .
- In the Auth Providers section, find the auth provider that you want to manage.
- For your auth provider, click the Actions menu and select Edit .
- Update the description or authentication details as needed.
- Click Save .
Google Cloud CLI
-
To update an auth provider, run the following command:
gcloud alpha agent-identity connectors update
AUTH_PROVIDER_NAME\ --location = "LOCATION" \ --description = "NEW_DESCRIPTION" \ --three-legged-oauth-client-id = "NEW_CLIENT_ID" \ --three-legged-oauth-client-secret = "NEW_CLIENT_SECRET" \ --three-legged-oauth-authorization-url = "NEW_ENDPOINT"Replace the following:
-
AUTH_PROVIDER_NAME: The name of the auth provider. -
LOCATION: The location of the auth provider. -
NEW_DESCRIPTION: A new description for the auth provider. -
NEW_CLIENT_ID: A new client ID from your third-party application. -
NEW_CLIENT_SECRET: A new client secret from your third-party application. -
NEW_ENDPOINT: A new URL of the third-party authorization server.
-
Enable or disable an auth provider
If you want to temporarily stop an agent from using an auth provider without deleting the auth provider, you can disable the auth provider. You can enable it again at any time.
Console
-
In the Google Cloud console, go to the Agent Registry page.
- Click the name of the agent whose auth provider that you want to manage.
- Click Identity .
- In the Auth Providers section, find the auth provider that you want to manage.
- For your auth provider, click Actions and select Enable or Disable .
- In the confirmation dialog, click Enable or Disable .
Google Cloud CLI
-
To enable an auth provider, run the following command:
gcloud alpha agent-identity connectors update
AUTH_PROVIDER_NAME\ --location = "LOCATION" \ --state = enabled -
To disable an auth provider, run the following command:
gcloud alpha agent-identity connectors update
AUTH_PROVIDER_NAME\ --location = "LOCATION" \ --state = disabled
Replace the following:
-
AUTH_PROVIDER_NAME: The name of the auth provider. -
LOCATION: The location of the auth provider.
Delete an auth provider
When you no longer need an auth provider, you can delete it. Deleting an auth provider disables it and schedules it for deletion. You can restore a deleted auth provider within 30 days.
Console
-
In the Google Cloud console, go to the Agent Registry page.
- Click the name of the agent whose auth provider that you want to manage.
- Click Identity .
- In the Auth Providers section, find the auth provider that you want to manage.
- For your auth provider, click Actions and select Delete .
- In the confirmation dialog, click Delete .
gcloud
-
To delete an auth provider, run the following command:
gcloud alpha agent-identity connectors delete
AUTH_PROVIDER_NAME\ --location = "LOCATION"
Replace the following:
-
AUTH_PROVIDER_NAME: The name of the auth provider. -
LOCATION: The location of the auth provider.
Restore a deleted auth provider
If you accidentally delete an auth provider, you can restore it within 30 days of deletion. After 30 days, the auth provider is permanently deleted.
Console
-
In the Google Cloud console, go to the Agent Registry page.
- Click the name of the agent whose auth provider that you want to manage.
- Click Identity .
- In the Auth Providers section, find the auth provider that you want to manage.
- For your auth provider, click Actions and select Restore .
- In the confirmation dialog, click Restore .
gcloud
-
To restore an auth provider, run the following command:
gcloud alpha agent-identity connectors undelete
AUTH_PROVIDER_NAME\ --location = "LOCATION"
Replace the following:
-
AUTH_PROVIDER_NAME: The name of the auth provider. -
LOCATION: The location of the auth provider.

