OpenAI
หน้านี้แปลด้วยระบบอัตโนมัติ ดูต้นฉบับภาษาอังกฤษ.

Google Workspace - การตั้งค่าแบบ Admin-Managed

อัปเดตล่าสุด: 15 days ago

หากต้องการเชื่อมต่อ Google Workspace ของคุณกับ ChatGPT โดยใช้การตั้งค่าแบบ admin-managed ก่อนอื่นคุณจะต้องกำหนดค่าการเข้าถึงในคอนโซลผู้ดูแลระบบของ Google:

  • สร้างบัญชีบริการที่มีสิทธิ์เข้าถึงแบบอ่านอย่างเดียวสำหรับ Google Drive ผู้ใช้ และกลุ่ม

    • ขอแนะนำอย่างยิ่งให้สร้างบัญชีบริการนี้ภายใต้บัญชี Google เดียวกันกับที่เชื่อมโยงกับเวิร์กสเปซ ChatGPT ของคุณ หากบัญชีในเวิร์กสเปซ ChatGPT ใช้โดเมนอีเมลต่างจากที่ใช้ใน Google Workspace จะมีขั้นตอนเพิ่มเติมที่คุณต้องทำตามเพื่อเปิดใช้ตัวเชื่อมต่อนี้สำหรับผู้ใช้ของคุณ

  • สร้างบัญชีผู้ดูแลระบบที่บัญชีบริการจะทำงานแทน

จากนั้นทำการตั้งค่าให้เสร็จสิ้นในคอนโซลผู้ดูแลระบบ ChatGPT:

  • อัปโหลดคีย์ส่วนตัวของบัญชีบริการ (ไฟล์ JSON จาก Google)

  • ระบุบัญชีผู้ดูแลระบบ (ไม่ต้องใช้ข้อมูลเข้าสู่ระบบ)

  • เลือกไฟล์ที่จะซิงค์ และเลือกผู้ใช้ที่จะมีสิทธิ์เข้าถึงการเชื่อมต่อ

คู่มือนี้จะพาคุณทำตามทั้ง 6 ขั้นตอนนี้

การตั้งค่าบัญชีบริการ

  1. ไปที่ console.cloud.google.com

  2. คลิกเมนูแบบเลื่อนลงของโปรเจกต์Imageตรวจสอบให้แน่ใจว่าคุณลงชื่อเข้าใช้ Google workspace เดียวกันกับที่เชื่อมโยงกับเวิร์กสเปซ ChatGPT ของคุณ (หากคุณไม่มี Google workspace ที่เชื่อมโยงกับเวิร์กสเปซ ChatGPT และใช้อีเมลต่างกันระหว่างทั้งสอง คุณจะต้อง ทำตามขั้นตอนเพิ่มเติม มิฉะนั้นผู้ใช้ของคุณอาจไม่สามารถใช้ตัวเชื่อมต่อที่ซิงค์กับ Google Drive ได้)

  3. เลือก New Project

    Google Cloud Select a resource dialog with dolores-lab.com organization selected
  4. ป้อน Project Name

    Google Cloud New Project form with organization dolores-lab.com selected and Create button available
  5. สร้างโปรเจกต์

    Google Cloud New Project form with ChatGPT Google Connector entered under the dolores-lab.com organization
  6. รอจนกว่าโปรเจกต์จะถูกสร้าง แล้วคลิก Select Project

    Google Cloud notifications confirm creation of the ChatGPT Google Connector project for dolores-lab.com
  7. คลิก APIs & Services

    Image
  8. คลิก Library

    Image
  9. ตอนนี้เราจะเพิ่ม API สามรายการ โดยใช้ช่องค้นหาเพื่อค้นหา

    Google Cloud API Library page with the ChatGPT Google Connector project selected
  10. ค้นหาและเลือก Google Drive API

    Google Cloud API Library search results for Google Drive API in the ChatGPT Google Connector project
  11. คลิก Enable

    Google Cloud Console Google Drive API page with the Enable button for the ChatGPT Google Connector project
  12. คลิก Library

    Google Drive API details page with the API enabled and Create Credentials available
  13. ค้นหา Google Drive Activity

    Google Cloud API Library open for the ChatGPT Google Connector project
  14. เลือก Google Drive Activity API

    Google Cloud API Library search results for Google Drive Activity API
  15. คลิก Enable

    Image
  16. คลิก Library

    Google Cloud Console Drive Activity API details page with the API enabled and Create credentials available
  17. ค้นหา Admin SDK API

    Google Cloud API Library page for the ChatGPT Google Connector project
  18. เลือก Admin SDK API

    Google Cloud API Library search results for Admin SDK API with Admin SDK API listed
  19. คลิก Enable

    Google Cloud Admin SDK API page with the Enable button for the ChatGPT Google Connector project
  20. คลิก Credentials

    Google Cloud Admin SDK API details page with the API enabled and Create credentials button available
  21. คลิก Create Credentials

    Google Cloud APIs & Services Credentials page with Configure consent screen button
  22. คลิก Service account

    Google Cloud Credentials page with Create credentials menu open for API key, OAuth client ID, or service account
  23. ระบุชื่อและคำอธิบายตามต้องการสำหรับบัญชีบริการนี้

    Google Cloud Create service account page with Service Accounts selected and service account details fields
  24. (ไม่บังคับ) คุณสามารถกำหนดบทบาทได้ ซึ่ง ChatGPT ไม่ได้กำหนดให้ต้องทำ

    Google Cloud Create service account page with optional IAM role step and Service account created confirmation
  25. (ไม่บังคับ) คุณสามารถให้สิทธิ์การเข้าถึงกับบัญชีบริการได้ ซึ่ง ChatGPT ไม่ได้กำหนดให้ต้องทำ

    Google Cloud Create service account step 3 with Done button and Service account created confirmation
  26. คลิก Done

    Create service account step 3 in Google Cloud with Done button and Service account created confirmation
  27. คลิกที่บัญชีบริการที่สร้างขึ้นแล้ว

    Google Cloud Credentials page listing the newly created ChatGPT Google Connector service account
  28. คลิก keys.

    Google Cloud IAM service account details for ChatGPT Google Connector, enabled after creation
  29. คลิก Add Key

    Image
  30. คลิก Create new key

    Google Cloud service account Keys tab with Add key menu open to create or upload a key
  31. คงประเภทคีย์ JSON เริ่มต้นไว้แล้วคลิก Create
    หากคุณเห็นข้อความแสดงข้อผิดพลาดว่า “Service account key creation is disabled” ให้ทำตามขั้นตอนเหล่านี้เพื่อเปิดใช้งาน

    Create private key dialog for ChatGPT Google Connector with JSON key type selected
  32. คลิก Close ตอนนี้คีย์ถูกดาวน์โหลดลงในคอมพิวเตอร์ของคุณแล้ว ภายหลังคุณจะอัปโหลดคีย์นี้ไปยังคอนโซลผู้ดูแลระบบ ChatGPT

    Google Cloud service account Keys tab with confirmation that a private key JSON file was saved to the computer
  33. คลิก details

    Google Cloud service account Keys tab for ChatGPT Google Connector with Add Key button
  34. จด Unique ID ไว้ ซึ่งจะต้องใช้ในขั้นตอนที่ 42

    Google Cloud service account details for ChatGPT Google Connector with status Enabled
  35. ขยาย Advanced settings

    Google Cloud service account details for ChatGPT Google Connector with the account enabled
  36. เลื่อนลงแล้วคลิก View Google Workspace Admin Console คอนโซล Google Workspace จะเปิดในแท็บใหม่

    Image
  37. คลิก Show more

    Google Workspace Admin console home page for dolores-lab.com
  38. ขยายส่วน Security

    Image
  39. ขยายส่วน Access and data controls

    Google Workspace Admin console home with Security section expanded in the left navigation
  40. คลิกส่วน API controls

    Google Workspace Admin console home with Security > Access and data control expanded in the sidebar
  41. คลิก Manage Domain Wide Delegation

    Google Admin console API controls page under Security > Access and data control
  42. คลิก Add new

    Google Admin Domain-wide Delegation page with API clients list and Add new option
  43. ใช้ Unique ID ที่จดไว้ก่อนหน้านี้เป็นค่าสำหรับ Client ID นี้

    Google Admin Domain-wide Delegation dialog for adding a new client ID and OAuth scopes
  44. สำหรับ OAuth scopes โปรดดูค่า auth scopes ที่คั่นด้วยเครื่องหมายจุลภาคต่อไปนี้ ซึ่งคุณจะต้องคัดลอกและวาง:

https://www.googleapis.com/auth/admin.directory.group.readonly, https://www.googleapis.com/auth/admin.directory.group.member.readonly, https://www.googleapis.com/auth/admin.directory.user.readonly, https://www.googleapis.com/auth/admin.directory.user.alias.readonly, https://www.googleapis.com/auth/drive.activity.readonly, https://www.googleapis.com/auth/drive.metadata.readonly, https://www.googleapis.com/auth/drive.readonly, https://www.googleapis.com/auth/userinfo.profile, https://www.googleapis.com/auth/userinfo.email
Scopeการให้เหตุผล
admin.directory.group.readonlyบังคับใช้สิทธิ์ตามกลุ่ม
admin.directory.group.member.readonlyบังคับใช้สิทธิ์ตามกลุ่ม
admin.directory.user.alias.readonlyรองรับกรณีที่ผู้ใช้ได้รับสิทธิ์ผ่าน alias
drive.activity.readonlyเพื่อรับการแจ้งเตือนเมื่อมีการเปลี่ยนแปลงกับไฟล์
drive.metadata.readonlyซิงค์เนื้อหาไฟล์และข้อมูลเมตาที่เกี่ยวข้อง (เช่น วันที่แก้ไขล่าสุด)
drive.readonlyซิงค์เนื้อหาไฟล์และข้อมูลเมตาที่เกี่ยวข้อง (เช่น วันที่แก้ไขล่าสุด)
userinfo.profileระบุผู้ใช้ที่เรากำลังซิงค์ไฟล์ให้
userinfo.emailระบุผู้ใช้ที่เรากำลังซิงค์ไฟล์ให้
Google Admin Domain-wide Delegation dialog for adding a new client ID and OAuth scopes

45. คลิก Authorize

Image

46. สำเร็จ!

Image

การตั้งค่าบัญชีผู้ดูแลระบบ

  1. ขยาย Directory

    Google Admin Domain-wide Delegation page with a ChatGPT API client and scopes listed
  2. คลิก Users

    Google Admin domain-wide delegation page listing a ChatGPT Google Connector API client and scopes
    Google Admin console Users page listing workspace accounts for setup and management
  3. ระบุชื่อ นามสกุล และอีเมลหลักตามต้องการ

    Google Admin console Add new user form for creating a Workspace user at dolores-lab.com
  4. คลิก Add new user

    Google Admin console Add new user form filled for a ChatGPT Connector account
  5. (ไม่บังคับ) บันทึกข้อมูลเข้าสู่ระบบเหล่านี้ไว้ ChatGPT ไม่ต้องใช้ข้อมูลเข้าสู่ระบบเหล่านี้

    Google Admin Console New user added page for ChatGPT Connector with Copy Password and Done actions
  6. คลิก Done

    Google Admin console Copy password dialog for a newly created user account
  7. คลิกที่บัญชีที่คุณเพิ่งสร้าง หากไม่ปรากฏในรายการ ให้รีเฟรชหน้า หรือล้างแคชและคุกกี้แล้วลองอีกครั้ง

    Google Admin console Users page listing accounts including ChatGPT Connector
  8. คลิก assign roles

    Google Admin user details page for the ChatGPT Connector service account
  9. เปิดใช้บทบาท Groups Reader, User Management Admin, และ Storage Admin

    Google Admin ChatGPT Connector user page with Admin roles and privileges open and no roles assigned
  10. เลื่อนลงแล้วคลิก Save. บัญชีผู้ดูแลระบบถูกสร้างและกำหนดค่าเรียบร้อยแล้ว

Image

การตั้งค่าให้เสร็จสิ้นในคอนโซลผู้ดูแลระบบ ChatGPT

  1. ไปที่ ChatGPT แล้วคลิกไอคอนโปรไฟล์ที่มุมขวาบนของหน้าเว็บ

    Image
  2. คลิก Manage workspace

    ChatGPT workspace menu with Manage workspace selected under the organization switcher
  3. คลิก Connections แล้วภายใต้ ‘Synced connectors’Enable Sync

    Connectors page with Google Drive sync prompt and Enable Sync button highlighted
  4. ตรวจสอบให้แน่ใจว่าเลือก Admin-managed แล้ว และคลิก Next

    Google Drive connection setup with Admin-managed setup selected over Self-service setup
  5. พิมพ์ชื่อที่แสดง เราแนะนำให้ใช้ชื่อของ Google Workspace ของคุณ

    โปรดทราบว่าขณะนี้เราไม่รองรับการเปลี่ยนชื่อการเชื่อมต่อของคุณ

    Google Workspace connector setup dialog with display name Dolores Labs entered
  6. คลิก Save Draft and Continue

  7. คลิก Upload key เลือกไฟล์ JSON ซึ่งเป็นคีย์ที่คุณดาวน์โหลดไว้ในขั้นตอนการตั้งค่าบัญชีบริการด้านบน ตรวจสอบให้แน่ใจว่าคีย์นี้ถูกต้อง

    Google Workspace connection setup step prompting upload of a service account key and admin email address
  8. พิมพ์อีเมลแอดเดรสของผู้ดูแลระบบ นี่คือบัญชีผู้ดูแลระบบที่คุณสร้างไว้ก่อนหน้านี้

    Image
  9. คลิก Save.

    ChatGPT Connections credentials dialog with service account key and Google Workspace admin email entered
  10. เลือกว่าคุณต้องการรวมไฟล์ใน My Drive ของผู้ใช้ทั้งหมดหรือไม่

    ChatGPT Connections modal for User files with Include user My Drives enabled at step 2 of 5
  11. คลิก Next

    ChatGPT admin Connections modal for User files with Include user My Drives enabled in step 2 of 5
  12. เลือกวิธีจัดการไดรฟ์ที่แชร์ เรารองรับ 3 กรณีต่อไปนี้:

    1. หากคุณต้องการรวมไดรฟ์ที่แชร์ทั้งหมด ให้เลือก Include by default และอย่าเพิ่ม ID ของไดรฟ์ที่แชร์ที่ต้องการยกเว้น

    2. หากคุณต้องการรวมไดรฟ์ที่แชร์ส่วนใหญ่ ให้เลือก Include by default และเพิ่ม ID ของไดรฟ์ที่แชร์ที่คุณต้องการยกเว้น

    3. หากคุณต้องการยกเว้นไดรฟ์ที่แชร์ส่วนใหญ่ ให้เลือก Exclude by default และเพิ่ม ID ของไดรฟ์ที่แชร์ที่คุณต้องการรวม

    ChatGPT admin Shared drives setup with Include by default selected and an Excluded Shared drives field
  13. หากต้องการดู ID ของไดรฟ์ที่แชร์ ให้เปิดไดรฟ์นั้นในเว็บเบราว์เซอร์ ส่วนท้ายของ URL คือ ID ของไดรฟ์ที่แชร์
    ในตัวอย่างต่อไปนี้ คือ `0ADvY03uUbEcQUk9PVA`'

    Google Drive shared drive with Manage members visible for Example Shared Drive
  14. คลิก Next

    ChatGPT admin Connections modal for Shared drives with Include by default selected at step 3 of 5
  15. เลือกผู้ที่ควรมีสิทธิ์เข้าถึงการเชื่อมต่อ Google Drive คุณสามารถเลือกเฉพาะผู้ดูแลระบบของเวิร์กสเปซ ChatGPT หรือเปิดใช้ให้ทุกคนก็ได้ หากเปิดใช้ให้ทุกคน ผู้ใช้ใหม่ที่เพิ่มเข้ามาในเวิร์กสเปซจะถูกรวมโดยอัตโนมัติ

    Google Drive connector permission set to Admins only for workspace members
  16. คลิก Start syncing

    Image
  17. สร้างการเชื่อมต่อ Google Drive ของคุณสำเร็จแล้ว!
    โปรดทราบว่า แม้จะเริ่มซิงค์ทันที แต่การซิงค์อาจใช้เวลาหลายชั่วโมงถึงหลายวันจึงจะเสร็จสิ้น ขึ้นอยู่กับจำนวนไฟล์ที่ถูกรวมตามการตั้งค่าของคุณ
    เมื่อไฟล์ที่ถูกเพิ่ม/แก้ไขในช่วง 30 วันที่ผ่านมาซิงค์เสร็จแล้ว ตัวเชื่อมต่อจะพร้อมใช้งานสำหรับผู้ใช้ที่คุณเปิดใช้ให้

    Image

การเปิดใช้การสร้างคีย์บัญชีบริการ

หากคุณได้รับข้อผิดพลาดต่อไปนี้ คุณจะต้องเปิดใช้การสร้างบัญชีบริการสำหรับโปรเจกต์นี้โดยเฉพาะ:

> ข้อจำกัดนโยบายขององค์กร ‘iam.disableServiceAccountKeyCreation’ ถูกบังคับใช้กับองค์กรของคุณ

Google Cloud service account Keys tab with error that service account key creation is disabled
  1. เปิดแท็บใหม่แล้วไปที่ console.cloud.google.com ตรวจสอบให้แน่ใจว่าโปรเจกต์ที่เลือกคือโปรเจกต์ที่คุณเลือกไว้แล้ว
    คลิกไอคอนเมนูที่มุมซ้ายบน

    Google Cloud Console welcome page for the ChatGPT Google Connector project
  2. ชี้ไปที่ IAM & Admin

    Google Cloud Console navigation with IAM & Admin open and Organization Policies selected
  3. คลิก Organizational Policies

    Google Cloud Console IAM & Admin menu opened to Organization Policies
  4. ค้นหา iam.disableServiceAccountKeyCreation

    Google Cloud organization policies for the ChatGPT Google Connector project
  5. คลิกผลลัพธ์สำหรับ constraints/iam.disableServiceAccountKeyCreation

    Image
  6. คลิก … ของแถวที่มี ID เป็น iam.disableServiceAccountKeyCreation

    Organization policies filtered to Disable service account key creation for the ChatGPT Google Connector project
  7. คลิก Edit policy หาก Edit policy ถูกปิดใช้งาน คุณจะต้องเป็น Organization Policy Administrator

    Google Cloud Organization Policies filtered to Disable service account key creation with Edit policy menu open
  8. คลิก Override parent’s policy

    Image
  9. คลิก Add a rule

    Edit policy page for Disable service account key creation with Override parent's policy selected
  10. คลิก Set Policy

    Google Cloud Edit policy page with Override parent's policy selected and enforcement set to Off
  11. ตอนนี้คุณสามารถสร้างคีย์บัญชีบริการได้แล้ว การเปิดใช้นี้อาจใช้เวลาหลายนาทีจึงจะมีผล

Google Cloud policy details with Disable service account key creation set to Not enforced

การเป็น Organization Policy Administrator

  1. ไปที่ console.cloud.google.com แล้วคลิก ตัวเลือกโปรเจกต์/องค์กร

    Google Cloud welcome page for the ChatGPT Google Connector project
  2. คลิก องค์กรของคุณ

    Image
  3. คลิกไอคอนเมนูที่มุมซ้ายบน

    Image
  4. ชี้ไปที่ IAM & Admin

    Google Cloud console navigation menu open with Google Cloud Setup pinned
  5. คลิก IAM

    Image
  6. คลิกไอคอนดินสอสำหรับบัญชีของคุณ

    Google Cloud IAM page for dolores-lab.com showing organization permissions and the Grant Access action
  7. คลิก Add Another Role

    Google Cloud IAM dialog assigning the Organization Administrator role for dolores-lab.com
  8. ค้นหา Organization Policy Administrator

    Google Cloud IAM edit access dialog assigning the Organization Administrator role to a user
  9. คลิก Organization Policy Administrator

    Google Cloud IAM role picker with Organization Policy Administrator selected while editing access
  10. คลิก Save

    Google Cloud IAM access editor assigning Organization Administrator and Organization Policy Administrator roles
  11. ตอนนี้บัญชีของคุณมีสิทธิ์เปิดใช้การสร้างคีย์บัญชีบริการแล้ว อาจใช้เวลาหลายนาทีจึงจะมีผล

การใช้ Google Email Alias เพื่อคงบัญชีอีเมลที่แตกต่างกันสำหรับ Google Workspace และ ChatGPT

หากคุณเป็นผู้ดูแลระบบที่กำลังเชื่อมต่อ Google Workspace กับเวิร์กสเปซ ChatGPT ของคุณโดยใช้การตั้งค่าแบบ admin-managedสำหรับตัวเชื่อมต่อที่ซิงค์กับ Google Drive และองค์กรของคุณใช้โดเมนอีเมลที่ต่างกันสำหรับ ChatGPT และ Google Workspace คุณจะต้องทำขั้นตอนเพิ่มเติมเพื่อให้แน่ใจว่าผู้ใช้สามารถเข้าถึงตัวเชื่อมต่อที่ซิงค์กับ Google Drive ได้สำเร็จ

คำแนะนำ: หากเป็นไปได้ ให้ใช้อีเมลหลักเดียวกันทั้งสำหรับบัญชี Google Workspace และ ChatGPT

หากไม่สามารถทำได้ ให้ทำตามคำแนะนำด้านล่างเพื่อกำหนดค่า Google Workspace email alias ให้ตรงกับอีเมลที่ใช้ลงชื่อเข้าใช้ ChatGPT

ขั้นตอนการเพิ่ม Google Workspace Alias

ทำตามขั้นตอนเหล่านี้ใน Google Admin Console เพื่อให้แน่ใจว่าอีเมล ChatGPT ของผู้ใช้แต่ละรายสามารถเชื่อมโยงกับบัญชี Google Workspace ของตนได้:

  1. ไปที่ Admin Console ไปที่: Directory > Users

Image

2. เลือกผู้ใช้ จากนั้นเลือก “ADD ALTERNATIVE EMAILS”

Google Admin user details page with Add alternate emails action highlighted

3. เพิ่มอีเมลสำรอง ตรวจสอบให้แน่ใจว่าตรงกับบัญชี ChatGPT ของผู้ใช้

Google Workspace Admin alternate email alias form with alias-testing-alt-email on bytesheaven.com

4. เลือก Save


ข้อจำกัดที่ทราบ

ไม่รองรับอีเมลส่วนบุคคล

ผู้ใช้ที่สมัคร ChatGPT ด้วยอีเมลส่วนบุคคล (เช่น example@gmail.com) จะไม่สามารถเชื่อมต่อกับ Google Workspace ได้ การตั้งค่านี้ไม่ได้รับการรองรับและมีความเสี่ยงด้านความปลอดภัย เนื่องจากทำให้เข้าถึงข้อมูลภายในจากภายนอกองค์กรได้

ไม่รองรับ Gmail alias แบบ "+"

Gmail อนุญาตให้ผู้ใช้สร้าง alias โดยเพิ่ม "+" ต่อท้ายอีเมลของตน (เช่น user+alias@gmail.com) alias ประเภทนี้ใช้ไม่ได้กับตัวเชื่อมต่อที่ซิงค์กับ Google Drive โดยต้องกำหนด alias ไว้อย่างชัดเจนใน Google Workspace

ข้อความแสดงข้อผิดพลาดที่พบบ่อย

หากอีเมลไม่ได้เชื่อมโยงอย่างถูกต้อง ผู้ใช้อาจพบข้อความนี้: "We were unable to connect your account to Google Drive. คลิกเพื่อดูเพิ่มเติม."

หากผู้ใช้ได้รับข้อความนี้ ให้ตรวจสอบขั้นตอนในเอกสารนี้และให้แน่ใจว่าทำตามอย่างถูกต้อง หากต้องการความช่วยเหลือเพิ่มเติม โปรดติดต่อทีมสนับสนุนของเรา

บทความนี้มีประโยชน์หรือไม่