集成节点/Built in_nodes/Credentials/Google
Google 凭据#
本节内容包括:
- OAuth2 单项服务:为特定服务节点(例如 Gmail 节点)创建 OAuth2 凭据。
- OAuth2 通用:创建可用于 自定义操作 的 OAuth2 凭据。
- 服务账号(Service Account):为某些特定服务节点创建 服务账号(Service Account) 凭据。
- Google PaLM 和 Gemini:获取 Google Gemini / Google PaLM API 密钥。
OAuth2 与服务账号(Service Account)#
Google 服务节点支持两种认证方式:
- OAuth2:推荐使用,因其适用范围更广且设置更简单。
- 服务账号(Service Account):请参考 Google 文档:了解服务账号,以确定何时需要使用服务账号。
n8n Cloud 用户注意事项 对于以下节点,您可以在 OAuth 部分选择 使用 Google 登录(Sign in with Google) 进行认证:
- Google Calendar
- Google Contacts
- Google Drive
- Google Mail
- Google Sheets
- Google Sheets Trigger
- Google Tasks
兼容的节点#
配置完成后,您可以使用这些凭据对以下节点进行身份验证。大多数节点都支持 OAuth2 认证。服务账户(Service Account)认证的支持较为有限。
| 节点 | OAuth | 服务账户(Service Account) |
|---|---|---|
| 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 在技术上支持将服务账户(Service Account)用于 Gmail,但需要启用域范围委派(domain-wide delegation),而 Google 并不推荐此做法,且其行为可能不稳定。 n8n 建议在使用 Gmail 节点时采用 OAuth2 认证方式。
与文档交流
本页面是否对你有帮助? !Thumbs up 有帮助 !Thumbs down 没帮助 感谢您的反馈! 提交
上一篇 Gong 凭据 下一篇 Google OAuth2 单项服务
由 Material for MkDocs Insiders 提供支持