Method: users.settings.delegates.create
संग्रह की मदद से व्यवस्थित रहें
अपनी प्राथमिकताओं के आधार पर, कॉन्टेंट को सेव करें और कैटगरी में बांटें.
पुष्टि करने वाला ईमेल भेजे बिना, किसी प्रतिनिधि को जोड़ता है. साथ ही, पुष्टि की स्थिति को सीधे accepted
पर सेट करता है. यह ज़रूरी है कि जिस उपयोगकर्ता को ऐक्सेस दिया जा रहा है वह और ऐक्सेस देने वाला उपयोगकर्ता, एक ही Google Workspace संगठन के सदस्य हों.
Gmail, Google Workspace संगठन के हर उपयोगकर्ता के लिए, ईमेल खाते का ऐक्सेस देने वाले और ऐक्सेस पाने वाले लोगों की संख्या पर पाबंदी लगाता है. ये सीमाएं आपके संगठन पर निर्भर करती हैं. हालांकि, आम तौर पर हर उपयोगकर्ता के पास, 25 लोगों को ऐक्सेस देने और 10 लोगों से ऐक्सेस पाने का विकल्प होता है.
ध्यान दें कि किसी उपयोगकर्ता को ईमेल पाने की अनुमति देते समय, उसके मुख्य ईमेल पते का इस्तेमाल किया जाना चाहिए, न कि ईमेल उपनाम का.
यह भी ध्यान रखें कि नया प्रतिनिधि बनाने के बाद, उसे इस्तेमाल करने में एक मिनट तक लग सकता है.
यह तरीका सिर्फ़ उन सेवा खाता क्लाइंट के लिए उपलब्ध है जिन्हें पूरे डोमेन पर अनुमति दी गई है.
एचटीटीपी अनुरोध
POST https://gmail.googleapis.com/gmail/v1/users/{userId}/settings/delegates
यूआरएल में gRPC ट्रांसकोडिंग सिंटैक्स का इस्तेमाल किया गया है.
पाथ पैरामीटर
पैरामीटर |
userId |
string
उपयोगकर्ता का ईमेल पता. पुष्टि किए गए उपयोगकर्ता की जानकारी देने के लिए, खास वैल्यू "me" का इस्तेमाल किया जा सकता है.
|
अनुरोध का मुख्य भाग
अनुरोध के मुख्य भाग में Delegate
का उदाहरण है.
जवाब का मुख्य भाग
कामयाब रहने पर, जवाब के मुख्य हिस्से में Delegate
का नया इंस्टेंस शामिल किया जाता है.
अनुमति के दायरे
नीचे दिए गए OAuth के लिंक की ज़रूरत हाेती है:
https://www.googleapis.com/auth/gmail.settings.sharing
ज़्यादा जानकारी के लिए, अनुमति से जुड़ी गाइड देखें.
जब तक कुछ अलग से न बताया जाए, तब तक इस पेज की सामग्री को Creative Commons Attribution 4.0 License के तहत और कोड के नमूनों को Apache 2.0 License के तहत लाइसेंस मिला है. ज़्यादा जानकारी के लिए, Google Developers साइट नीतियां देखें. Oracle और/या इससे जुड़ी हुई कंपनियों का, Java एक रजिस्टर किया हुआ ट्रेडमार्क है.
आखिरी बार 2025-07-25 (UTC) को अपडेट किया गया.
[null,null,["आखिरी बार 2025-07-25 (UTC) को अपडेट किया गया."],[],[],null,["# Method: users.settings.delegates.create\n\n- [HTTP request](#body.HTTP_TEMPLATE)\n- [Path parameters](#body.PATH_PARAMETERS)\n- [Request body](#body.request_body)\n- [Response body](#body.response_body)\n- [Authorization scopes](#body.aspect)\n\nAdds a delegate with its verification status set directly to `accepted`, without sending any verification email. The delegate user must be a member of the same Google Workspace organization as the delegator user.\n\nGmail imposes limitations on the number of delegates and delegators each user in a Google Workspace organization can have. These limits depend on your organization, but in general each user can have up to 25 delegates and up to 10 delegators.\n\nNote that a delegate user must be referred to by their primary email address, and not an email alias.\n\nAlso note that when a new delegate is created, there may be up to a one minute delay before the new delegate is available for use.\n\nThis method is only available to service account clients that have been delegated domain-wide authority.\n\n### HTTP request\n\n`POST https://gmail.googleapis.com/gmail/v1/users/{userId}/settings/delegates`\n\nThe URL uses [gRPC Transcoding](https://google.aip.dev/127) syntax.\n\n### Path parameters\n\n| Parameters ||\n|----------|-------------------------------------------------------------------------------------------------------|\n| `userId` | `string` User's email address. The special value \"me\" can be used to indicate the authenticated user. |\n\n### Request body\n\nThe request body contains an instance of [Delegate](/workspace/gmail/api/reference/rest/v1/users.settings.delegates#Delegate).\n\n### Response body\n\nIf successful, the response body contains a newly created instance of [Delegate](/workspace/gmail/api/reference/rest/v1/users.settings.delegates#Delegate).\n\n### Authorization scopes\n\nRequires the following OAuth scope:\n\n- `https://www.googleapis.com/auth/gmail.settings.sharing`\n\nFor more information, see the [Authorization guide](/workspace/guides/configure-oauth-consent)."]]