शुरुआती सेटअप
संग्रह की मदद से व्यवस्थित रहें
अपनी प्राथमिकताओं के आधार पर, कॉन्टेंट को सेव करें और कैटगरी में बांटें.
डेवलपर के लिए सेटअप
क्लाउड प्रोजेक्ट के लिए एपीआई सुइट चालू करें
- Cloud Console पर जाएं: https://console.cloud.google.com/.
- मौजूदा क्लाउड प्रोजेक्ट चुनें या नया प्रोजेक्ट बनाएं.
APIs & Services > Enable APIs and Services
पर जाएं
- “Chrome” खोजें.
- “Chrome Management API” चुनें.
- सेवा की शर्तों के बारे में जानें.
Enable
पर क्लिक करें.
क्रेडेंशियल बनाएं
पहला विकल्प: OAuth 2.0 क्लाइंट आईडी
- "OAuth 2.0 Client-ID" बनाने से पहले, आपको अपने ऐप्लिकेशन के बारे में जानकारी के साथ ऐसी स्क्रीन कॉन्फ़िगर करनी होगी जहां OAuth के लिए सहमति दी जाती है.
Cloud Console में,
APIs & Services > OAuth consent screen
पर जाएं.
सहमति वाली स्क्रीन के कॉन्फ़िगरेशन पेज पर, स्कोप डालें:
- रिपोर्ट एपीआई के लिए यह जोड़ें:
https://www.googleapis.com/auth/chrome.management.reports.readonly
- ऐप्लिकेशन की जानकारी वाले एपीआई के लिए यह जोड़ें:
https://www.googleapis.com/auth/chrome.management.appdetails.readonly
- Telemetry API के लिए यह जोड़ें:
https://www.googleapis.com/auth/chrome.management.telemetry.readonly
ध्यान दें कि जोड़े गए दायरे संवेदनशील होते हैं. इसलिए, आपको पुष्टि के लिए अपना ऐप्लिकेशन सबमिट करना पड़ सकता है. अगर आपका ऐप्लिकेशन अंदरूनी नहीं है, तो उपयोगकर्ताओं को सुरक्षा से जुड़ी चेतावनी वाली स्क्रीन दिख सकती है.
APIs & Services > Credentials > Create Credentials > OAuth client ID
पर जाएं और दिए गए तरीके अपनाकर क्रेडेंशियल बनाएं.
वैकल्पिक रूप से, OAuth प्लेग्राउंड में अपने ऐप्लिकेशन की जांच करें (कैसे करें देखें).
दूसरा विकल्प: सेवा खाता
APIs & Services > Credentials > Create Credentials > Service account
पर जाएं
- सेवा खाते का नाम डालें और
Create
पर क्लिक करें.
- अपने सेवा खाते के लिए कुंजी बनाएं.
Add Key
पर क्लिक करें और “json” कुंजी बनाएं. किसी सुरक्षित जगह पर फ़ाइल पर नज़र रखें.
- ग्राहक के लिए, अपने सेवा खाते का इस्तेमाल एडमिन के खास अधिकारों के साथ करें:
- ग्राहक, डोमेन-वाइड डेलिगेशन की सुविधा सेट अप कर सकता है. इसके बाद, सेवा खाता किसी ऐसे उपयोगकर्ता/एडमिन के नाम पर काम कर सकता है जिसके पास खास अधिकार हों (कैसे देखें)
- या ग्राहक सीधे सेवा खाते को एडमिन की भूमिका दे सकता है (कैसे देखें).
ग्राहक के लिए सेटअप
डेवलपर ने ऐप्लिकेशन का कौनसा टाइप बनाया है, इसके आधार पर ग्राहक एडमिन के पास सेटअप के अलग-अलग विकल्प होते हैं.
"OAuth 2.0 क्लाइंट" ऐप्लिकेशन
किसी खास सेटअप की ज़रूरत नहीं है.
ऐप्लिकेशन इस्तेमाल करने वालों के लिए, एडमिन के खास अधिकारों की ज़रूरत होती है (कैसे देखें).
ऐप्लिकेशन इस्तेमाल करने वालों को, ऐप्लिकेशन के इस्तेमाल की OAuth पॉप-अप सहमति वाली स्क्रीन के लिए सहमति देनी होगी.
इसके अलावा, इस ऐप्लिकेशन को पूरे डोमेन के डेटा का ऐक्सेस देने की अनुमति दी जा सकती है (कैसे देखें). इससे, उपयोगकर्ताओं के लिए OAuth पॉप-अप सहमति वाली स्क्रीन हट जाएगी.
विकल्प के तौर पर, यह पुष्टि करें कि ऐप्लिकेशन को ब्लॉक नहीं किया गया है या फिर ऐप्लिकेशन पर साफ़ तौर पर भरोसा करें (तरीका देखें).
"सेवा खाता" ऐप्लिकेशन
सेवा खाते को सही एडमिन के खास अधिकार दिए जाने चाहिए.
ऐसा दो में से किसी एक तरीके से किया जा सकता है:
- पूरे डोमेन के मालिकाना हक का ऐक्सेस देने की अनुमति दें, ताकि सेवा खाता, किसी ऐसे एडमिन के नाम का इस्तेमाल कर सके जिसके पास खास अधिकार हों (कैसे देखें).
- सेवा खाते के लिए, एडमिन की भूमिकाएं सीधे तौर पर दें (तरीका देखें).
"कैसे करें" गाइड
किसी ऐप्लिकेशन को ब्लॉक करने या उस पर भरोसा करने का तरीका
- ग्राहक एडमिन के तौर पर, Admin console (https://admin.google.com/) पर जाएं.
Security > Access and data control > API controls
पर नेविगेट करें.
App access control
सेक्शन में, Manage third party app access
पर क्लिक करें.
- अगर आपको 'कनेक्ट किए गए ऐप्लिकेशन' सूची में ऐप्लिकेशन नहीं दिखता है, तो नया ऐप्लिकेशन कॉन्फ़िगर किया जा सकता है.
- अब आपके पास ऐप्लिकेशन को ब्लॉक करने या ऐप्लिकेशन पर पूरी तरह भरोसा करने का विकल्प है.
पूरे डोमेन के लिए डेटा का ऐक्सेस देने की सुविधा चालू करने का तरीका
- ग्राहक एडमिन के तौर पर, Admin console (https://admin.google.com/) पर जाएं.
Security > Access and data control > API controls > Domain-wide delegation
पर नेविगेट करें.
Add new
पर क्लिक करें.
- क्लाइंट आईडी डालें ("सेवा खाते का यूनीक आईडी" या "ऐप्लिकेशन क्लाइंट आईडी").
- सभी ज़रूरी OAuth दायरे डालें. ऐप्लिकेशन के हिसाब से, आपको Chrome Management API के अलावा दूसरे काम भी करने पड़ सकते हैं. जैसे, डिवाइसों, उपयोगकर्ताओं, ब्राउज़र, ओयू, ग्रुप वगैरह को मैनेज करने के लिए डायरेक्ट्री एपीआई.
Authorize
पर क्लिक करें.
एडमिन के खास अधिकारों को मैनेज करने का तरीका
Chrome Management API के अलग-अलग हिस्सों के लिए, एडमिन के अलग-अलग खास अधिकारों की
ज़रूरत होती है. देखें कि रिपोर्ट एपीआई, ऐप्लिकेशन की जानकारी वाले एपीआई या Telemetry API के लिए कौनसे एडमिन के खास अधिकार ज़रूरी हैं.
खास अधिकार देने के लिए:
- ग्राहक एडमिन के तौर पर, Admin console (https://admin.google.com/) पर जाएं.
Admin roles
पेज पर जाएं.
- कोई मौजूदा भूमिका ढूंढें या ज़रूरी अधिकारों के साथ नई भूमिका बनाएं.
- यह भूमिका उपयोगकर्ता के ईमेल पते या सेवा खाते के ईमेल पते को असाइन करें.
OAuth Playground में, अपने ऐप्लिकेशन की जांच करने का तरीका
जब तक कुछ अलग से न बताया जाए, तब तक इस पेज की सामग्री को Creative Commons Attribution 4.0 License के तहत और कोड के नमूनों को Apache 2.0 License के तहत लाइसेंस मिला है. ज़्यादा जानकारी के लिए, Google Developers साइट नीतियां देखें. Oracle और/या इससे जुड़ी हुई कंपनियों का, Java एक रजिस्टर किया हुआ ट्रेडमार्क है.
आखिरी बार 2025-07-25 (UTC) को अपडेट किया गया.
[null,null,["आखिरी बार 2025-07-25 (UTC) को अपडेट किया गया."],[[["\u003cp\u003eDevelopers need to enable the Chrome Management API, create credentials (OAuth or Service Account), and understand setup options for customer admins.\u003c/p\u003e\n"],["\u003cp\u003eCustomer admins need to configure settings based on the developer's application type, potentially granting privileges or enabling domain-wide delegation.\u003c/p\u003e\n"],["\u003cp\u003e"How to" guides provide detailed instructions for blocking/trusting apps, enabling domain-wide delegation, managing admin privileges, and testing in OAuth Playground.\u003c/p\u003e\n"],["\u003cp\u003eDifferent Chrome Management APIs require specific admin privileges, and detailed information is available in their respective guides.\u003c/p\u003e\n"],["\u003cp\u003eOAuth 2.0 Client apps need user consent or Domain-Wide Delegation, while Service Account apps require explicit admin privilege grants.\u003c/p\u003e\n"]]],[],null,["# Initial Setup\n\nSetup for a developer\n---------------------\n\n### Enable API suite for cloud project\n\n- Navigate to Cloud Console: \u003chttps://console.cloud.google.com/\u003e.\n- Select existing cloud project or create a new one.\n- Go to `APIs & Services \u003e Enable APIs and Services`.\n- Search for \"Chrome\".\n- Select \"Chrome Management API\".\n- Familiarize yourself with Terms of Service.\n- Click `Enable`.\n\n### Create Credentials\n\n#### Alternative 1: OAuth 2.0 Client IDs\n\n- Before you are able to create \"OAuth 2.0 Client ID\" you need to first configure the OAuth consent screen with information about your application. In Cloud Console, go to `APIs & Services \u003e OAuth consent screen`.\n- In your consent screen config page, enter the scopes:\n\n - For Reports API add: `https://www.googleapis.com/auth/chrome.management.reports.readonly`\n - For App Details API add: `https://www.googleapis.com/auth/chrome.management.appdetails.readonly`\n - For Telemetry API add: `https://www.googleapis.com/auth/chrome.management.telemetry.readonly`\n\n Note that added scopes are sensitive, so you may need to submit your app for verification. Otherwise, users may see a security warning screen if your app is not internal.\n- Go to `APIs & Services \u003e Credentials \u003e Create Credentials \u003e OAuth client ID` and follow the steps to create the credentials.\n\n- Optionally, test your app in OAuth Playground (see [How to](#how_to_test_your_app_in_oauth_playground)).\n\n#### Alternative 2: Service Account\n\n- Go to `APIs & Services \u003e Credentials \u003e Create Credentials \u003e Service account`.\n- Enter service account name and click `Create`.\n- Create a key for your service account. Click `Add Key` and create \"json\" key. Keep track of the file in a secure location.\n- Use your service account with proper admin privileges for customer:\n - Customer may set up Domain-Wide Delegation and then the service account can impersonate a user/admin who has proper privileges (see [how](#how_to_enable_domain-wide_delegation))\n - or customer may grant an admin role with proper privileges to the service account directly (see [how](#how_to_manage_admin_privileges)).\n\nSetup for a customer\n--------------------\n\nDepending on which application type the developer created, the customer admin has different setup options.\n\n#### \"OAuth 2.0 Client\" Apps\n\nNo special setup is needed.\n\nApp users require proper admin privileges (see [how](#how_to_manage_admin_privileges)).\n\nApp users need to agree to the app OAuth pop-up consent screen.\nOptionally, you can allow this app to use Domain-Wide Delegation (see [how](#how_to_enable_domain-wide_delegation)), which will omit the OAuth pop-up consent screen for users.\n\nOptionally verify if the app isn't blocked, or trust the app explicitly (see [how](#how_to_block_or_trust_an_app)).\n\n#### \"Service Account\" Apps\n\nThe service account must be granted proper admin privileges.\nYou can do this in either of two ways:\n\n- Allow Domain-Wide Delegation so the Service Account can impersonate an admin that has proper privileges (see [how](#how_to_enable_domain-wide_delegation)).\n- Grant Admin Roles for the service account directly (see [how](#how_to_manage_admin_privileges)).\n\n\"How to\" guides\n---------------\n\n### How to block or trust an app\n\n- As customer admin, go to Admin Console (https://admin.google.com/).\n- Navigate to `Security \u003e Access and data control \u003e API controls`.\n- In the `App access control` section, click `Manage third party app access`.\n- If you don't see the app in the 'Connected apps' list, you can configure a new app.\n- You can now block the app or trust the app explicitly.\n\n### How to enable domain-wide delegation\n\n- As customer admin, go to Admin Console (https://admin.google.com/).\n- Navigate to `Security \u003e Access and data control \u003e API controls \u003e Domain-wide delegation`.\n- Click `Add new`.\n- Enter client ID (\"service account unique id\" or \"app client ID\").\n- Enter all necessary OAuth scopes. Depending on the app, you may need to enter scopes for more than just Chrome Management API; e.g. the Directory API for managing devices, users, browsers, OUs, groups, etc.\n- Click `Authorize`.\n\n### How to manage admin privileges\n\nFor different portions of the Chrome Management APIs, different admin privileges\nare needed. See which admin privileges are required for\n[Reports API](/chrome/management/guides/reports_api),\n[App Details API](/chrome/management/guides/app_details_api), or\n[Telemetry API](/chrome/management/guides/telemetry_api).\n\nTo grant privileges:\n\n- As customer admin, go to Admin Console (https://admin.google.com/).\n- Navigate to `Admin roles` page.\n- Find an existing role or create a new role with the necessary privileges.\n- Assign this role to the user email address or the service account email address.\n\n### How to test your app in OAuth Playground\n\n- In Cloud Console, when creating an OAuth client ID for your app (see above [OAuth 2.0 Client IDs](/chrome/management/guides/setup#alternative_1_oauth_20_client_ids) section) select application type \"Web Applications\".\n- Enter a 'Name'.\n- To test your app, add `https://developers.google.com/oauthplayground` to the \"Authorized redirect URIs\" field. You can remove the redirect URI from your app when you're done testing.\n- Click `Create` and copy \"client ID\" and \"client secret\".\n- Go to [OAuth Playground](https://developers.google.com/oauthplayground/)\n- Click the gear icon in the top right corner ('OAuth 2.0 Configuration'), select `Use your own OAuth credentials`, and enter \"OAuth Client ID\" and \"OAuth Client secret\".\n- Follow these steps in OAuth Playground\n\n - Select \\& authorize APIs.\n\n Add `https://www.googleapis.com/auth/chrome.management.reports.readonly` (or other api scope) in the scope input field and click 'Authorize APIs'.\n Authorize using a customer admin account. Agree to the terms.\n - Exchange authorization code for tokens.\n\n Click `Exchange authorization code for tokens`. Optionally, click `Auto-refresh the token before it expires`.\n - Configure request to API.\n\n Enter your API URL in the 'Request URI' text box. Modify 'HTTP Method', 'Enter request body', etc. as per the API specification.\n For example, use the following URL to count the installed Apps in your organization: `https://chromemanagement.googleapis.com/v1alpha1/customers/my_customer/reports:countInstalledApps`"]]