Skip to content

Google 凭证#

本节包含:

OAuth2 与服务账号#

Google 服务节点提供两种认证方式:

给 n8n Cloud 用户的注意事项

对于以下节点,您可以通过在 OAuth 部分选择 使用 Google 登录 进行认证:

兼容节点#

配置完成后,您可以使用凭据对以下节点进行身份验证。大多数节点兼容 OAuth2 认证,服务账号认证的支持较为有限。

节点 OAuth 服务账号
Google Ads ✅ ❌
Gmail ✅ ⚠
Google Analytics ✅ ❌
Google BigQuery ✅ ✅
Google Books ✅ ✅
Google Calendar ✅ ❌
Google Chat ❌ ✅
Google Cloud Storage ✅ ❌
Google Contacts ✅ ❌
Google Cloud Firestore ✅ ✅
Google Cloud Natural Language ✅ ❌
Google Cloud Realtime Database ✅ ❌
Google Docs ✅ ✅
Google Drive ✅ ✅
Google Drive Trigger ✅ ✅
Google Perspective ✅ ❌
Google Sheets ✅ ✅
Google Slides ✅ ✅
Google Tasks ✅ ❌
Google Translate ✅ ✅
Google Workspace Admin ✅ ❌
YouTube ✅ ❌

Gmail 与服务账号

Google 技术上是支持将服务账号用于 Gmail 的,但这需要启用域范围委托功能(Google 不推荐此做法),且其行为可能不一致。

n8n 建议在 Gmail 节点中使用 OAuth2 认证。