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

Add Send-As Alias(代理送信エイリアスの追加)

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

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

カスタムAPIアクション

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

代理人の削除

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

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

Delete Send-As Alias(代理送信エイリアスの削除)

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

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

Forward Emails(メールの転送)

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

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

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

List Delegates(代理人の一覧表示)

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

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

Read Email(メールの参照)

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

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

Search Emails(メールの検索)

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

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

Send Email(メールの送信)

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

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

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

Send Email with Attachment(添付ファイル付きのメールの送信)

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

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

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

自動返信の設定(Set Auto Reply)

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