Method: users.settings.delegates.list
Menampilkan daftar delegasi untuk akun yang ditentukan.
Metode ini hanya tersedia untuk klien akun layanan yang telah didelegasikan otoritas seluruh domain.
Permintaan HTTP
GET https://gmail.googleapis.com/gmail/v1/users/{userId}/settings/delegates
URL menggunakan sintaksis gRPC Transcoding.
Parameter jalur
Parameter |
userId |
string
Alamat email pengguna. Nilai khusus "{i>me<i}" dapat digunakan untuk menunjukkan
pengguna yang telah diotentikasi.
|
Isi permintaan
Isi permintaan harus kosong.
Isi respons
Respons untuk metodedelegasis.list.
Jika berhasil, isi respons memuat data dengan struktur berikut:
Representasi JSON |
{
"delegates": [
{
object (Delegate )
}
]
} |
Kolom |
delegates[] |
object (Delegate )
Daftar delegasi pengguna (dengan status verifikasi apa pun). Jika akun tidak memiliki penerima delegasi, kolom ini tidak akan muncul.
|
Cakupan otorisasi
Memerlukan salah satu cakupan OAuth berikut:
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
Untuk informasi selengkapnya, lihat Panduan otorisasi.
Kecuali dinyatakan lain, konten di halaman ini dilisensikan berdasarkan Lisensi Creative Commons Attribution 4.0, sedangkan contoh kode dilisensikan berdasarkan Lisensi Apache 2.0. Untuk mengetahui informasi selengkapnya, lihat Kebijakan Situs Google Developers. Java adalah merek dagang terdaftar dari Oracle dan/atau afiliasinya.
Terakhir diperbarui pada 2024-09-05 UTC.
[null,null,["Terakhir diperbarui pada 2024-09-05 UTC."],[[["Lists delegates for a specified account, accessible only to service accounts with domain-wide authority."],["Employs a `GET` request to the endpoint `https://gmail.googleapis.com/gmail/v1/users/{userId}/settings/delegates`, using gRPC Transcoding syntax."],["Requires an empty request body and returns a JSON response containing a list of delegates, if any."],["Needs authorization with specific OAuth scopes like `https://www.googleapis.com/auth/gmail.settings.basic` or `https://www.googleapis.com/auth/gmail.modify`."]]],["A `GET` request is made to `https://gmail.googleapis.com/gmail/v1/users/{userId}/settings/delegates` to list an account's delegates. The `userId` path parameter, which can be \"me,\" specifies the user. The request body must be empty. The response body, if successful, includes a JSON structure with a list of delegate objects under the \"delegates\" field. This action requires service account clients with domain-wide authority and specific OAuth scopes.\n"]]