Gestisci le credenziali per le API Google Workspace
Mantieni tutto organizzato con le raccolte
Salva e classifica i contenuti in base alle tue preferenze.
Le credenziali vengono utilizzate per ottenere un token di accesso dai server di autorizzazione di Google in modo che la tua app possa chiamare le API Google Workspace. Per le API Google Workspace, puoi gestire le credenziali OAuth 2.0 e dell'account di servizio.
Visualizza credenziali
Per visualizzare un elenco delle credenziali abilitate per tutte le API Google Workspace o per una singola API Google Workspace, segui questi passaggi:
Nella console Google Cloud, fai clic su Menu
menu
> Altri prodotti
> Google Workspace
> Credenziali.
Andare a Google Workspace
Per selezionare una singola API Google Workspace, fai clic su Tutte le API Google Workspace e poi seleziona un'API.
Modifica credenziali
Dopo aver creato le credenziali, puoi modificarne alcuni aspetti. Ad esempio, per gli ID client OAuth 2.0, puoi modificare il nome visualizzato nella console Google Cloud o reimpostare il client secret. Per gli account di servizio, puoi modificare il nome e la descrizione.
Nella console Google Cloud, fai clic su Menu
menu
> Altri prodotti
> Google Workspace
> Credenziali.
Vai a Google Workspace
Per modificare una credenziale, fai clic su Modifica edit.
Apporta le modifiche e fai clic su Salva.
Reimposta client secret
Il segreto client deve essere noto solo all'applicazione e al
server di autorizzazione.
Nella console Google Cloud, fai clic su Menu
menu
> Altri prodotti
> Google Workspace
> Credenziali.
Vai a Google Workspace
Accanto a un ID client OAuth 2.0, fai clic su Modifica edit.
Fai clic su Reimposta secret.
Copia il secret e aggiorna l'applicazione con questo valore.
Disattivare un account di servizio
Quando disattivi un account di servizio, le applicazioni non hanno più accesso alle risorse Google Cloud tramite quell'account di servizio. Se disattivi un account di servizio, puoi riattivarlo in un secondo momento.
Nella console Google Cloud, fai clic su Menu
menu
> Altri prodotti
> Google Workspace
> Credenziali.
Vai a Google Workspace
Accanto a un account di servizio, fai clic su Modifica edit.
Fai clic su Disattiva account di servizio e poi su Disattiva.
Eliminare un ID client o un account di servizio
Quando elimini un ID client o un account di servizio, le applicazioni non hanno più accesso alle risorse Google Cloud tramite quell'ID client o quell'account di servizio. Se elimini un ID client o un account di servizio, l'eliminazione è definitiva e le credenziali non possono essere ripristinate.
Nella console Google Cloud, fai clic su Menu
menu
> Altri prodotti
> Google Workspace
> Credenziali.
Vai a Google Workspace
Accanto a una credenziale, fai clic su Elimina
delete e poi su Elimina.
Passaggi successivi
Salvo quando diversamente specificato, i contenuti di questa pagina sono concessi in base alla licenza Creative Commons Attribution 4.0, mentre gli esempi di codice sono concessi in base alla licenza Apache 2.0. Per ulteriori dettagli, consulta le norme del sito di Google Developers. Java è un marchio registrato di Oracle e/o delle sue consociate.
Ultimo aggiornamento 2025-04-08 UTC.
[null,null,["Ultimo aggiornamento 2025-04-08 UTC."],[[["\u003cp\u003eGoogle Workspace credentials, including OAuth 2.0 and service accounts, are used to obtain access tokens for your app to interact with Google Workspace APIs.\u003c/p\u003e\n"],["\u003cp\u003eYou can manage your Google Workspace credentials—view, edit, reset client secrets, turn off service accounts, and delete credentials—in the Google Cloud console.\u003c/p\u003e\n"],["\u003cp\u003eDeleting credentials permanently removes application access to Google Cloud resources through that credential and cannot be undone.\u003c/p\u003e\n"],["\u003cp\u003eFor security, the client secret of an OAuth 2.0 Client ID should only be known by the application and the authorization server.\u003c/p\u003e\n"]]],["Credentials, like OAuth 2.0 and service accounts, enable apps to access Google Workspace APIs. To manage them, navigate to **Google Workspace** \u003e **Credentials** in the Google Cloud console. Here, you can view credentials for all or individual APIs. Editing allows changes to names and descriptions or resetting client secrets. Service accounts can be disabled or deleted, permanently revoking app access. Similarly, deleting client IDs is permanent. Finally, credentials can be reset to get new access tokes.\n"],null,["# Manage credentials for Google Workspace APIs\n\nCredentials are used to obtain an access token from Google's authorization\nservers so your app can call Google Workspace APIs. For\nGoogle Workspace APIs, you can manage OAuth 2.0 and service account\ncredentials.\n\nView credentials\n----------------\n\nTo see a list of credentials enabled for all Google Workspace APIs or an\nindividual Google Workspace API, do the following:\n\n1. In the Google Cloud console, click Menu\n menu\n \\\u003e **More products**\n \\\u003e **Google Workspace**\n \\\u003e **Credentials**.\n\n [Go to Google Workspace](https://console.cloud.google.com/workspace-api)\n2. To select an individual Google Workspace API, click **All Google\n Workspace APIs**, then select an API.\n\nEdit credentials\n----------------\n\nAfter you create credentials, you can edit some aspects of a credential. For\nexample, for OAuth 2.0 client IDs, you can edit the name that is shown in\ntheGoogle Cloud console or reset the client secret. For service accounts, you\ncan edit the name and description.\n\n1. In the Google Cloud console, click Menu\n menu\n \\\u003e **More products**\n \\\u003e **Google Workspace**\n \\\u003e **Credentials**.\n\n [Go to Google Workspace](https://console.cloud.google.com/workspace-api)\n2. To edit a credential, click Edit edit.\n\n3. Make your changes and then click **Save**.\n\nReset client secret\n-------------------\n\nThe client secret should only be known to the application and the authorization\nserver.\n\n1. In the Google Cloud console, click Menu\n menu\n \\\u003e **More products**\n \\\u003e **Google Workspace**\n \\\u003e **Credentials**.\n\n [Go to Google Workspace](https://console.cloud.google.com/workspace-api)\n2. Next to an OAuth 2.0 Client ID, click Edit edit.\n\n3. Click **Reset Secret**.\n\n4. Copy the secret and update the application with this value.\n\nTurn off a service account\n--------------------------\n\nWhen you turn off a service account, applications no longer have access to the\nGoogle Cloud resources through that service account. If you turn off a service\naccount, you can turn it back on later.\n\n1. In the Google Cloud console, click Menu\n menu\n \\\u003e **More products**\n \\\u003e **Google Workspace**\n \\\u003e **Credentials**.\n\n [Go to Google Workspace](https://console.cloud.google.com/workspace-api)\n2. Next to a service account, click Edit edit.\n\n3. Click **Disable service account** and then click **Disable.**\n\nDelete a client ID or service account\n-------------------------------------\n\nWhen you delete a client ID or a service account, applications no longer have\naccess to the Google Cloud Resources through that client ID or service\naccount. If you delete a client ID or service account, this deletion is\npermanent and the credentials can't be restored.\n\n1. In the Google Cloud console, click Menu\n menu\n \\\u003e **More products**\n \\\u003e **Google Workspace**\n \\\u003e **Credentials**.\n\n [Go to Google Workspace](https://console.cloud.google.com/workspace-api)\n2. Next to a credential, click Delete\n delete and then click **Delete**.\n\nNext steps\n----------\n\n- [Learn about authentication \\& authorization](/workspace/guides/auth-overview).\n- [Create access credentials](/workspace/guides/create-credentials)."]]