Skip to content

Google 凭据(Google credentials)#

本节包含:

🌐 This section contains:

OAuth2 和服务账户(OAuth2 and Service Account)#

Google 服务节点有两种身份验证方法:

🌐 There are two authentication methods available for Google services nodes:

为 n8n Cloud 用户管理的 OAuth2(Managed OAuth2 for n8n Cloud users)#

托管 OAuth2 可用于 n8n Cloud 用户的以下 Google 节点。这提供了简化的凭证创建过程:

兼容节点(Compatible nodes)#

配置完成后,你可以使用你的凭据来验证以下节点。大多数节点兼容 OAuth2 验证。对服务账户验证的支持有限。

🌐 Once configured, you can use your credentials to authenticate the following nodes. Most nodes are compatible with OAuth2 authentication. Support for Service Account authentication is limited.

节点 OAuth 服务账号
谷歌广告 ✅ ❌
Gmail :白色对勾: :警告:
Google Analytics :白色对勾: ❌
Google BigQuery ✅ ✅
Google 图书 ✅ ✅
Google 日历 ✅ ❌
Google 聊天 ✅ ✅
谷歌云存储 ✅ ❌
Google 联系人 ✅ ❌
谷歌云 Firestore ✅ ✅
Google Cloud 自然语言 ✅ ❌
Google 云实时数据库 ✅ ❌
Google 文档 ✅ ✅
谷歌云端硬盘 ✅ ✅
Google 云端硬盘触发器 ✅ ✅
Google Perspective :白色对勾: :叉:
Google 表格 ✅ ✅
Google 幻灯片 ✅ ✅
Google 任务 ✅ ❌
谷歌翻译 ✅ ✅
Google Workspace 管理员 ✅ ❌
YouTube :白色对勾: ❌

Gmail 和服务账号

从技术上讲,Google 支持使用服务帐号访问 Gmail,但这需要启用域范围委托,而 Google 不鼓励这样做,而且其行为可能不一致。

n8n 建议在 Gmail 节点使用 OAuth2。