Gmailコネクターカードのスコープ

Gmailコネクターは、スコープ付きのOAuth 2.0アクセストークンを使用して、Google APIにアクセスします。各アクセストークンは、ベアラーが特定のGoogleエンドポイントで特定のアクションを実行することを可能にします。アクセストークンに含まれるスコープは、これらのアクションを実行する機能を制御します。

Googleコネクターで使用するイベントおよびアクションカードごとに、必要なスコープを付与します。

既存の接続にスコープの変更を反映させるには、接続を再承認する必要があります。

Google開発者ドキュメントの「Google API用OAuth 2.0 スコープ」トピックが、利用可能なスコープすべてを詳細に説明しています。

イベントカード

Gmailコネクターのイベントカードは、以下の表に示されているスコープを必要とします。

コネクターカード

必要なスコープ

ラベルの追加または削除

https://www.googleapis.com/auth/gmail.readonly

https://www.googleapis.com/auth/userinfo.email

新規メール

https://www.googleapis.com/auth/gmail.readonly

https://www.googleapis.com/auth/userinfo.email

アクションカード

Google Calendarコネクターのイベントカードは、以下の表に示されているスコープを必要とします。

コネクターカード

必要なスコープ

代理人の追加

https://www.googleapis.com/auth/cloud-platform

https://www.googleapis.com/auth/userinfo.email

代理送信エイリアスの追加

https://www.googleapis.com/auth/cloud-platform

https://www.googleapis.com/auth/userinfo.email

Custom API Action

APIエンドポイントに必要なスコープ。

代理人の削除

https://www.googleapis.com/auth/cloud-platform

https://www.googleapis.com/auth/userinfo.email

代理送信エイリアスの削除

https://www.googleapis.com/auth/cloud-platform

https://www.googleapis.com/auth/userinfo.email

メールの転送

https://www.googleapis.com/auth/gmail.settings.sharing

https://www.googleapis.com/auth/cloud-platform

https://www.googleapis.com/auth/userinfo.email

代理人の一覧表示

https://www.googleapis.com/auth/cloud-platform

https://www.googleapis.com/auth/userinfo.email

メールの読み取り

https://www.googleapis.com/auth/gmail.readonly

https://www.googleapis.com/auth/userinfo.email

メールの検索

https://www.googleapis.com/auth/gmail.readonly

https://www.googleapis.com/auth/userinfo.email

メールの送信

https://www.googleapis.com/auth/gmail.send

https://www.googleapis.com/auth/gmail.readonly

https://www.googleapis.com/auth/userinfo.email

添付ファイル付きのメールの送信

https://www.googleapis.com/auth/gmail.send

https://www.googleapis.com/auth/gmail.readonly

https://www.googleapis.com/auth/userinfo.email

自動返信の設定

https://www.googleapis.com/auth/gmail.settings.basic

https://www.googleapis.com/auth/cloud-platform

https://www.googleapis.com/auth/userinfo.email

ユーザーのGmail設定を更新

https://www.googleapis.com/auth/cloud-platform

https://www.googleapis.com/auth/userinfo.email