Zarządzanie danymi logowania do interfejsów Google Workspace API
Zadbaj o dobrą organizację dzięki kolekcji
Zapisuj i kategoryzuj treści zgodnie ze swoimi preferencjami.
Dane logowania są używane do uzyskiwania tokena dostępu z serwerów autoryzacji Google, aby aplikacja mogła wywoływać interfejsy Google Workspace API. W przypadku interfejsów API Google Workspace możesz zarządzać uprawnieniami OAuth 2.0 i danymi logowania do konta usługi.
Wyświetl dane logowania
Aby wyświetlić listę poświadczeń włączonych dla wszystkich interfejsów Google Workspace API lub pojedynczego interfejsu Google Workspace API, wykonaj te czynności:
W konsoli Google Cloud kliknij Menumenu
> Więcej usług
> Google Workspace
> Dane logowania.
Otwórz Google Workspace
Aby wybrać pojedynczy interfejs Google Workspace API, kliknij Wszystkie interfejsy Google Workspace API, a następnie wybierz interfejs API.
Edytowanie danych logowania
Po utworzeniu danych logowania możesz edytować niektóre ich aspekty. Na przykład w przypadku identyfikatorów klienta OAuth 2.0 możesz edytować nazwę wyświetlaną w konsoli Google Cloud lub zresetować tajny klucz klienta. W przypadku kont usług możesz edytować nazwę i opis.
W konsoli Google Cloud kliknij Menumenu
> Więcej usług
> Google Workspace
> Dane logowania.
Otwórz Google Workspace
Aby edytować dane logowania, kliknij Edytuj edit.
Wprowadź zmiany i kliknij Zapisz.
Resetowanie tajnego klucza klienta
Tajny klucz klienta powinien być znany tylko aplikacji i serwerowi autoryzacji.
W konsoli Google Cloud kliknij Menumenu
> Więcej usług
> Google Workspace
> Dane logowania.
Otwórz Google Workspace
Obok identyfikatora klienta OAuth 2.0 kliknij Edytuj edit.
Kliknij Resetuj obiekt tajny.
Skopiuj tajny klucz i zaktualizuj aplikację, używając tej wartości.
Wyłączanie konta usługi
Gdy wyłączysz konto usługi, aplikacje nie będą już mieć do niego dostępu za pomocą zasobów Google Cloud. Jeśli wyłączysz konto usługi, możesz je później ponownie włączyć.
W konsoli Google Cloud kliknij Menumenu
> Więcej usług
> Google Workspace
> Dane logowania.
Otwórz Google Workspace
Obok konta usługi kliknij Edytuj edit.
Kliknij kolejno Disable service account (Wyłącz konto usługi) i Disable (Wyłącz).
Usuwanie identyfikatora klienta lub konta usługi
Po usunięciu identyfikatora klienta lub konta usługi aplikacje nie będą już mieć dostępu do zasobów Google Cloud za pomocą tego identyfikatora klienta lub konta usługi. Jeśli usuniesz identyfikator klienta lub konto usługi, ta operacja będzie nieodwracalna, a poświadczeń nie będzie można przywrócić.
W konsoli Google Cloud kliknij Menumenu
> Więcej usług
> Google Workspace
> Dane logowania.
Otwórz Google Workspace
Obok danych logowania kliknij Usuńdelete, a następnie Usuń.
Dalsze kroki
O ile nie stwierdzono inaczej, treść tej strony jest objęta licencją Creative Commons – uznanie autorstwa 4.0, a fragmenty kodu są dostępne na licencji Apache 2.0. Szczegółowe informacje na ten temat zawierają zasady dotyczące witryny Google Developers. Java jest zastrzeżonym znakiem towarowym firmy Oracle i jej podmiotów stowarzyszonych.
Ostatnia aktualizacja: 2025-04-08 UTC.
[null,null,["Ostatnia aktualizacja: 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)."]]