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
โปรดดูข้อมูลเพิ่มเติมที่คู่มือการให้สิทธิ์
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 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"]]