OpenAI
هذه الصفحة مترجمة باستخدام الترجمة الآلية. تفضل بالاطّلاع على المقال الأصلي بالإنجليزية.

Google Workspace - الإعداد المُدار بواسطة المشرف

تم التحديث: 5 hours ago

لربط Google Workspace بـ ChatGPT باستخدام الإعداد المُدار بواسطة المشرف، ستقوم أولاً بتهيئة الوصول في وحدات تحكم مشرف Google:

  • أنشئ حساب خدمة يتمتع بوصول للقراءة فقط إلى Google Drive والمستخدمين والمجموعات.

    • نوصي بشدة بإنشاء حساب الخدمة هذا ضمن حساب Google نفسه المرتبط بمساحة عمل ChatGPT الخاصة بك. إذا كانت الحسابات في مساحة عمل ChatGPT تستخدم نطاق بريد إلكتروني مختلفًا عن المستخدم في Google Workspace، فهناك خطوات إضافية يجب عليك اتباعها لتمكين هذا الموصل لمستخدميك.

  • أنشئ حساب مشرف سيعمل حساب الخدمة نيابةً عنه.

ثم أكمل الإعداد في وحدة تحكم مشرف ChatGPT:

  • ارفع المفتاح الخاص بحساب الخدمة (ملف JSON من Google)

  • حدّد حساب المشرف (لا حاجة إلى بيانات اعتماد).

  • اختر الملفات المراد مزامنتها وحدّد المستخدمين الذين ستكون لديهم إمكانية الوصول إلى الاتصال.

يرشدك هذا الدليل خلال هذه الخطوات الست جميعها.

إعداد حساب خدمة

  1. انتقل إلى console.cloud.google.com.

  2. انقر على القائمة المنسدلة للمشاريع.صورةتأكد من أنك سجلت الدخول إلى نفس 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، راجع قيم نطاقات التفويض التالية المفصولة بفواصل والتي ستحتاج إلى نسخها ولصقها:

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
النطاقالاستدلال
admin.directory.group.readonlyفرض أذونات قائمة على المجموعات
admin.directory.group.member.readonlyفرض أذونات قائمة على المجموعات
admin.directory.user.alias.readonlyمعالجة الحالات التي يُمنح فيها المستخدم الإذن عبر اسم مستعار
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. اختر كيفية إدارة مساحات التخزين المشتركة. نحن ندعم السيناريوهات الثلاثة التالية:

    1. إذا كنت تريد تضمين جميع مساحات التخزين المشتركة، فاختر Include by default ولا تضف معرّفات مساحات التخزين المشتركة المراد استثناؤها

    2. إذا كنت تريد تضمين معظم مساحات التخزين المشتركة، فاختر Include by default وأضف المعرّفات الخاصة بمساحات التخزين المشتركة التي تريد استثناؤها

    3. إذا كنت تريد استبعاد معظم مساحات التخزين المشتركة، فاختر Exclude by default وأضف المعرّفات الخاصة بمساحات التخزين المشتركة التي تريد تضمينها

    ChatGPT admin Shared drives setup with Include by default selected and an Excluded Shared drives field
  13. للعثور على معرّف مساحة تخزين مشتركة، انتقل إليها في متصفح ويب. سيكون الجزء الأخير من عنوان URL هو معرّف مساحة التخزين المشتركة.
    في المثال التالي، هو `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. انقر على … للصف الذي يحمل المعرّف 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

أن تصبح مشرف سياسات المؤسسة

  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 الإلكتروني للاحتفاظ بحسابَي بريد مختلفين لكل من Google Workspace وChatGPT

إذا كنت مشرفًا يربط Google Workspace بمساحة عمل ChatGPT الخاصة بك باستخدام الإعداد المُدار بواسطة المشرف لموصلات Google Drive المتزامنة، وكانت مؤسستك تستخدم نطاقات بريد إلكتروني مختلفة لكل من ChatGPT وGoogle Workspace، فستحتاج إلى اتخاذ خطوات إضافية لضمان تمكّن المستخدمين من الوصول بنجاح إلى موصلات Google Drive المتزامنة.

توصية: كلما أمكن، استخدم عناوين البريد الإلكتروني الأساسية نفسها لكل من حسابات Google Workspace وChatGPT.

إذا لم يكن ذلك ممكنًا، فاتبع الإرشادات أدناه لتهيئة اسم مستعار لبريد Google Workspace الإلكتروني يطابق بريد تسجيل الدخول إلى ChatGPT.

خطوات إضافة اسم مستعار في Google Workspace

اتبع هذه الخطوات في 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 المستعارة باستخدام "+" غير مدعومة

يتيح Gmail للمستخدمين إنشاء أسماء مستعارة بإضافة "+" إلى عناوينهم (مثل user+alias@gmail.com). هذا النوع من الأسماء المستعارة لا يعمل مع موصلات Google Drive المتزامنة. يجب تكوين الاسم المستعار صراحةً في Google Workspace.

رسالة الخطأ الشائعة

إذا لم يتم ربط عناوين البريد الإلكتروني بشكل صحيح، فقد يواجه المستخدمون هذه الرسالة: «تعذر علينا ربط حسابك بـ Google Drive. انقر لمعرفة المزيد

إذا تلقى المستخدمون هذه الرسالة، فراجع الخطوات الواردة في هذا المستند وتأكد من اتباعها بدقة. إذا كنت بحاجة إلى مساعدة إضافية، فيرجى التواصل مع فريق الدعم لدينا.

هل كانت هذه المقالة مفيدة؟