Method: users.settings.delegates.get
指定されたデリゲートを取得します。
代理人は、メール エイリアスではなく、メインのメールアドレスで参照する必要があります。
この方法は、ドメイン全体の権限を委任されたサービス アカウント クライアントでのみ使用できます。
HTTP リクエスト
GET https://gmail.googleapis.com/gmail/v1/users/{userId}/settings/delegates/{delegateEmail}
この URL は gRPC Transcoding 構文を使用します。
パスパラメータ
パラメータ |
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"]]