ניהול פרטי הכניסה לממשקי API של Google Workspace
קל לארגן דפים בעזרת אוספים
אפשר לשמור ולסווג תוכן על סמך ההעדפות שלך.
פרטי הכניסה משמשים לקבלת אסימון גישה משרתי ההרשאות של Google, כדי שהאפליקציה תוכל לבצע קריאות לממשקי Google Workspace API. ב-Google Workspace APIs אפשר לנהל פרטי כניסה של OAuth 2.0 ושל חשבונות שירות.
הצגת פרטי הכניסה
כדי לראות רשימה של פרטי הכניסה שמופעלים לכל ממשקי ה-API של Google Workspace או לממשק API ספציפי של Google Workspace, מבצעים את הפעולות הבאות:
במסוף Google Cloud, לוחצים על סמל התפריט menu
> מוצרים נוספים
> Google Workspace
> פרטי כניסה.
כניסה ל-Google Workspace
כדי לבחור ממשק API ספציפי של Google Workspace, לוחצים על All Google Workspace APIs ובוחרים ממשק API.
עריכת פרטי הכניסה
אחרי שיוצרים פרטי כניסה, אפשר לערוך חלק מהמאפיינים שלהם. לדוגמה, במזהי לקוח ב-OAuth 2.0, אפשר לערוך את השם שמוצג במסוף Google Cloud או לאפס את הסוד של הלקוח. בחשבונות שירות, תוכלו לערוך את השם והתיאור.
במסוף Google Cloud, לוחצים על סמל התפריט menu
> מוצרים נוספים
> Google Workspace
> פרטי כניסה.
כניסה ל-Google Workspace
כדי לערוך פרטי כניסה, לוחצים על סמל העריכה edit.
מבצעים את השינויים הרצויים ולוחצים על שמירה.
איפוס סוד הלקוח
סוד הלקוח צריך להיות ידוע רק לאפליקציה ולשרת ההרשאות.
במסוף Google Cloud, לוחצים על סמל התפריט menu
> מוצרים נוספים
> Google Workspace
> פרטי כניסה.
כניסה ל-Google Workspace
לצד מזהה לקוח ב-OAuth 2.0, לוחצים על סמל העריכה edit.
לוחצים על Reset Secret.
מעתיקים את הסוד ומעדכנים את האפליקציה בערך הזה.
השבתת חשבון שירות
כשמשביתים חשבון שירות, לאפליקציות לא תהיה יותר גישה למשאבים של Google Cloud דרך חשבון השירות הזה. אם משביתים חשבון שירות, אפשר להפעיל אותו מחדש מאוחר יותר.
במסוף Google Cloud, לוחצים על סמל התפריט menu
> מוצרים נוספים
> Google Workspace
> פרטי כניסה.
כניסה ל-Google Workspace
לצד חשבון השירות, לוחצים על סמל העריכה edit.
לוחצים על Disable service account ואז על Disable.
מחיקה של מזהה לקוח או חשבון שירות
כשמוחקים מזהה לקוח או חשבון שירות, לאפליקציות לא תהיה יותר גישה למשאבים של Google Cloud דרך מזהה הלקוח או חשבון השירות הזה. אם מוחקים מזהה לקוח או חשבון שירות, המחיקה היא סופית ואי אפשר לשחזר את פרטי הכניסה.
במסוף Google Cloud, לוחצים על סמל התפריט menu
> מוצרים נוספים
> Google Workspace
> פרטי כניסה.
כניסה ל-Google Workspace
לוחצים על סמל המחיקה delete לצד פרטי הכניסה ואז על מחיקה.
השלבים הבאים
אלא אם צוין אחרת, התוכן של דף זה הוא ברישיון Creative Commons Attribution 4.0 ודוגמאות הקוד הן ברישיון Apache 2.0. לפרטים, ניתן לעיין במדיניות האתר Google Developers. Java הוא סימן מסחרי רשום של חברת Oracle ו/או של השותפים העצמאיים שלה.
עדכון אחרון: 2025-04-08 (שעון UTC).
[null,null,["עדכון אחרון: 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)."]]