Method: users.settings.delegates.delete
นำผู้รับมอบสิทธิ์ที่ระบุออก (ซึ่งอาจเป็นผู้รับมอบสิทธิ์ที่มีสถานะการยืนยันใดก็ได้) และเพิกถอนการยืนยันที่อาจจำเป็นต่อการใช้
โปรดทราบว่าผู้ใช้ที่รับมอบสิทธิ์ต้องอ้างอิงด้วยอีเมลหลัก ไม่ใช่อีเมลแทน
วิธีการนี้ใช้ได้กับลูกค้าบัญชีบริการที่ได้รับการมอบสิทธิ์ทั่วทั้งโดเมนเท่านั้น
คำขอ HTTP
DELETE https://gmail.googleapis.com/gmail/v1/users/{userId}/settings/delegates/{delegateEmail}
URL ใช้ไวยากรณ์การแปลง gRPC
พารามิเตอร์เส้นทาง
พารามิเตอร์ |
userId |
string
อีเมลของผู้ใช้ คุณสามารถใช้ค่าพิเศษ "me" เพื่อระบุผู้ใช้ที่ผ่านการตรวจสอบสิทธิ์
|
delegateEmail |
string
อีเมลของผู้ใช้ที่จะนำออกจากการเป็นผู้ใช้ที่รับมอบสิทธิ์
|
เนื้อหาของคำขอ
เนื้อหาของคำขอต้องว่างเปล่า
เนื้อหาการตอบกลับ
หากทำสำเร็จ เนื้อหาการตอบกลับจะเป็นออบเจ็กต์ JSON ว่าง
ขอบเขตการให้สิทธิ์
ต้องใช้ขอบเขต OAuth ต่อไปนี้
https://www.googleapis.com/auth/gmail.settings.sharing
ดูข้อมูลเพิ่มเติมได้ที่คู่มือการให้สิทธิ์
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 4.0 และตัวอย่างโค้ดได้รับอนุญาตภายใต้ใบอนุญาต Apache 2.0 เว้นแต่จะระบุไว้เป็นอย่างอื่น โปรดดูรายละเอียดที่นโยบายเว็บไซต์ Google Developers Java เป็นเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2025-03-14 UTC
[null,null,["อัปเดตล่าสุด 2025-03-14 UTC"],[[["Removes a delegate user identified by their primary email address, revoking any associated verification."],["This action is restricted to service account clients with delegated domain-wide authority."],["The request must specify the user and delegate's email addresses as path parameters."],["A successful operation results in an empty response body, indicating the delegate was removed."],["This functionality requires the `https://www.googleapis.com/auth/gmail.settings.sharing` OAuth scope for authorization."]]],["This outlines how to remove a delegate from a user's Gmail account. A `DELETE` HTTP request is sent to a specific URL, including the user's email (`userId`) and the delegate's email (`delegateEmail`) as path parameters. The request body must be empty. A successful removal returns an empty response body. This operation is only available to service accounts with domain-wide authority, and it requires the `gmail.settings.sharing` authorization scope. Only primary email address can be used for the delegate.\n"]]