Skip to content

Google credentials#

ส่วนนี้ประกอบด้วย:

OAuth2 and Service Account#

มีวิธีการยืนยันตัวตนสองวิธีสำหรับ node บริการของ Google:

  • OAuth2: แนะนำเนื่องจากมีการใช้งานที่กว้างขวางกว่าและตั้งค่าได้ง่ายกว่า
  • Service Account: อ้างอิงเอกสาร Google documentation: Understanding service accounts สำหรับคำแนะนำเกี่ยวกับเวลาที่คุณต้องการ Service Account

หมายเหตุสำหรับผู้ใช้ n8n Cloud

สำหรับ nodes ต่อไปนี้ คุณสามารถยืนยันตัวตนได้โดยเลือก Sign in with Google ในส่วน OAuth:

Compatible nodes#

เมื่อกำหนดค่าแล้ว คุณสามารถใช้ credentials ของคุณเพื่อยืนยันตัวตน node ต่อไปนี้ Node ส่วนใหญ่เข้ากันได้กับการยืนยันตัวตนแบบ OAuth2 การรองรับการยืนยันตัวตนแบบ Service Account มีจำกัด

Node 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 and Service Accounts

ทางเทคนิคแล้ว Google รองรับ Service Accounts สำหรับใช้กับ Gmail แต่ต้องเปิดใช้งาน domain-wide delegation ซึ่ง Google ไม่แนะนำ และพฤติกรรมอาจไม่สอดคล้องกัน

n8n แนะนำให้ใช้ OAuth2 กับ node Gmail