Skip to content

Google 凭据#

本节包含:

OAuth2 和服务账户#

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

n8n 云服务用户注意事项

对于以下节点,您可以通过在 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。