Method: users.settings.delegates.get
מקבל את הגישה שצוינה.
הערה: עליכם להפנות אל משתמש מואצל באמצעות כתובת האימייל הראשית שלו ולא באמצעות כתובת אימייל חלופית.
השיטה הזו זמינה רק ללקוחות של חשבונות שירות שקיבלו סמכות ברמת הדומיין.
בקשת HTTP
GET https://gmail.googleapis.com/gmail/v1/users/{userId}/settings/delegates/{delegateEmail}
בכתובת ה-URL נעשה שימוש בתחביר המרת gRPC.
פרמטרים של נתיב
פרמטרים |
userId |
string
זוהי כתובת האימייל של המשתמש. ניתן להשתמש בערך המיוחד 'me' כדי לציין את המשתמש המאומת.
|
delegateEmail |
string
כתובת האימייל של המשתמש שרוצים לאחזר את הקשר שלו להאצלה.
|
גוף הבקשה
גוף הבקשה חייב להיות ריק.
גוף התגובה
אם הפעולה בוצעה ללא שגיאות, גוף התגובה יכלול מופע של Delegate
.
היקפי הרשאות
כדי להשתמש בתכונה הזו יש צורך באחד מההיקפים הבאים של OAuth:
https://www.googleapis.com/auth/gmail.settings.basic
https://mail.google.com/
https://www.googleapis.com/auth/gmail.modify
https://www.googleapis.com/auth/gmail.readonly
למידע נוסף, ניתן לעיין במדריך ההרשאות.
אלא אם צוין אחרת, התוכן של דף זה הוא ברישיון Creative Commons Attribution 4.0 ודוגמאות הקוד הן ברישיון Apache 2.0. לפרטים, ניתן לעיין במדיניות האתר Google Developers. Java הוא סימן מסחרי רשום של חברת Oracle ו/או של השותפים העצמאיים שלה.
עדכון אחרון: 2024-09-05 (שעון UTC).
[null,null,["עדכון אחרון: 2024-09-05 (שעון UTC)."],[[["Retrieves a specific delegate for a Gmail user, identified by their primary email address."],["This functionality is exclusive to service accounts with domain-wide authority."],["Requires providing the user's email address (or \"me\" for the authenticated user) and the delegate's email address as path parameters."],["The response provides details of the delegate relationship if successful."],["Several OAuth scopes, including `https://www.googleapis.com/auth/gmail.settings.basic` and `https://www.googleapis.com/auth/gmail.modify`, are necessary for authorization."]]],["This describes retrieving a delegate user's information via a `GET` request to `https://gmail.googleapis.com/gmail/v1/users/{userId}/settings/delegates/{delegateEmail}`. The `userId` parameter specifies the user, and `delegateEmail` the delegate. The request body must be empty. A successful response contains a `Delegate` instance. This operation requires domain-wide authority for service accounts and one of the listed OAuth scopes for authorization. Delegate user must be referred by their primary email.\n"]]