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

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

تم التحديث: 4 days ago

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

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

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

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

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

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

  • حدّد حساب المسؤول (لا يلزم تقديم بيانات اعتماد).

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

يشرح هذا الدليل كل خطوة من هذه الخطوات الست.

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

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

  2. انقر على القائمة المنسدلة للمشاريع.صورةتأكد من تسجيل دخولك إلى مساحة عمل Google نفسها المرتبطة بمساحة عمل ChatGPT المشتركة لديك (إذا لم تكن لديك مساحة عمل Google مرتبطة بمساحة عمل ChatGPT المشتركة وكانت لديك عناوين بريد إلكتروني مختلفة بينهما، فسيتعين عليك اتباع خطوات إضافية، وإلا فقد لا يتمكن مستخدموك من استخدام موصلات Google Drive المتزامنة).

  3. اختر مشروع جديد

Google Cloud Select a resource dialog with dolores-lab.com organization selected
  1. أدخل اسم المشروع

Google Cloud New Project form with organization dolores-lab.com selected and Create button available
  1. أنشئ المشروع

Google Cloud New Project form with ChatGPT Google Connector entered under the dolores-lab.com organization
  1. انتظر حتى يتم إنشاء المشروع، ثم انقر على تحديد المشروع

Google Cloud notifications confirm creation of the ChatGPT Google Connector project for dolores-lab.com
  1. انقر على واجهات API والخدمات

Image
  1. انقر على المكتبة

Image
  1. سنضيف الآن ثلاث واجهات API، باستخدام مربع البحث للعثور عليها

Google Cloud API Library page with the ChatGPT Google Connector project selected
  1. ابحث عن Google Drive API واخترها

Google Cloud API Library search results for Google Drive API in the ChatGPT Google Connector project
  1. انقر على تمكين

Google Cloud Console Google Drive API page with the Enable button for the ChatGPT Google Connector project
  1. انقر على المكتبة

Google Drive API details page with the API enabled and Create Credentials available
  1. ابحث عن Google Drive Activity

Google Cloud API Library open for the ChatGPT Google Connector project
  1. اختر Google Drive Activity API

Google Cloud API Library search results for Google Drive Activity API
  1. انقر على تمكين

Image
  1. انقر على المكتبة

Google Cloud Console Drive Activity API details page with the API enabled and Create credentials available
  1. ابحث عن Admin SDK API

Google Cloud API Library page for the ChatGPT Google Connector project
  1. اختر Admin SDK API

Google Cloud API Library search results for Admin SDK API with Admin SDK API listed
  1. انقر على تمكين

Google Cloud Admin SDK API page with the Enable button for the ChatGPT Google Connector project
  1. انقر على بيانات الاعتماد

Google Cloud Admin SDK API details page with the API enabled and Create credentials button available
  1. انقر على إنشاء بيانات اعتماد

Google Cloud APIs & Services Credentials page with Configure consent screen button
  1. انقر على حساب خدمة

Google Cloud Credentials page with Create credentials menu open for API key, OAuth client ID, or service account
  1. قدّم اسمًا ووصفًا من اختيارك لحساب الخدمة هذا

Google Cloud Create service account page with Service Accounts selected and service account details fields
  1. (اختياري) يمكنك تعيين دور - هذا غير مطلوب من ChatGPT.

Google Cloud Create service account page with optional IAM role step and Service account created confirmation
  1. (اختياري) يمكنك منح حق الوصول إلى حساب الخدمة - هذا غير مطلوب من ChatGPT.

Google Cloud Create service account step 3 with Done button and Service account created confirmation
  1. انقر على تم.

Create service account step 3 in Google Cloud with Done button and Service account created confirmation
  1. انقر على حساب الخدمة الذي تم إنشاؤه الآن.

Google Cloud Credentials page listing the newly created ChatGPT Google Connector service account
  1. انقر على المفاتيح.

Google Cloud IAM service account details for ChatGPT Google Connector, enabled after creation
  1. انقر على إضافة مفتاح

Image
  1. انقر على إنشاء مفتاح جديد

Google Cloud service account Keys tab with Add key menu open to create or upload a key
  1. اترك نوع مفتاح JSON الافتراضي وانقر على إنشاء

إذا رأيت رسالة خطأ تقول «تم تعطيل إنشاء مفتاح حساب الخدمة»، فاتبع هذه الخطوات لتمكين الإنشاء.

Create private key dialog for ChatGPT Google Connector with JSON key type selected
  1. انقر على إغلاق. تم الآن تنزيل المفتاح إلى جهاز الكمبيوتر لديك. ستحمّله لاحقًا إلى وحدة تحكم مسؤول ChatGPT.

Google Cloud service account Keys tab with confirmation that a private key JSON file was saved to the computer
  1. انقر على التفاصيل

Google Cloud service account Keys tab for ChatGPT Google Connector with Add Key button
  1. دوّن المعرّف الفريد. ستحتاج إلى ذلك في الخطوة 42.

Google Cloud service account details for ChatGPT Google Connector with status Enabled
  1. وسّع الإعدادات المتقدمة

Google Cloud service account details for ChatGPT Google Connector with the account enabled
  1. مرّر لأسفل وانقر على عرض وحدة تحكم مسؤول Google Workspace. ستُفتح وحدة تحكم Google Workspace في علامة تبويب جديدة.

Image
  1. انقر على عرض المزيد

Google Workspace Admin console home page for dolores-lab.com
  1. وسّع قسم الأمان

Image
  1. وسّع قسم الوصول وعناصر التحكم في البيانات

Google Workspace Admin console home with Security section expanded in the left navigation
  1. انقر على قسم عناصر التحكم في API

Google Workspace Admin console home with Security > Access and data control expanded in the sidebar
  1. انقر على إدارة التفويض على مستوى النطاق

Google Admin console API controls page under Security > Access and data control
  1. انقر على إضافة جديد

Google Admin Domain-wide Delegation page with API clients list and Add new option
  1. استخدم المعرّف الفريد الذي دوّنته سابقًا كقيمة معرّف العميل هذا

Google Admin Domain-wide Delegation dialog for adding a new client ID and OAuth scopes
  1. بالنسبة إلى نطاقات OAuth، راجع قيم نطاقات التفويض التالية المفصولة بفواصل، والتي ستحتاج إلى نسخها ولصقها:

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. انقر على تفويض

Image

46. تم بنجاح!

Image

إعداد حساب المسؤول

  1. وسّع الدليل

Google Admin Domain-wide Delegation page with a ChatGPT API client and scopes listed
  1. انقر على المستخدمون

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
  1. قدّم اسمًا أول واسم عائلة وعنوان بريد إلكتروني أساسي من اختيارك

Google Admin console Add new user form for creating a Workspace user at dolores-lab.com
  1. انقر على إضافة مستخدم جديد

Google Admin console Add new user form filled for a ChatGPT Connector account
  1. (اختياري) سجّل بيانات الاعتماد هذه. لا يحتاج ChatGPT إلى بيانات الاعتماد هذه.

Google Admin Console New user added page for ChatGPT Connector with Copy Password and Done actions
  1. انقر على تم.

Google Admin console Copy password dialog for a newly created user account
  1. انقر على الحساب الذي أنشأته للتو. إذا لم يظهر في القائمة، فحدّث الصفحة أو امسح ذاكرة التخزين المؤقت وملفات تعريف الارتباط وحاول مرة أخرى.

Google Admin console Users page listing accounts including ChatGPT Connector
  1. انقر على تعيين الأدوار.

Google Admin user details page for the ChatGPT Connector service account
  1. فعّل أدوار قارئ المجموعات، ومسؤول إدارة المستخدمين، ومسؤول التخزين.

Google Admin ChatGPT Connector user page with Admin roles and privileges open and no roles assigned
  1. مرّر لأسفل وانقر على حفظ. تم الآن إنشاء حساب المسؤول وتهيئته بنجاح.

Image

إكمال الإعداد في وحدة تحكم مسؤول ChatGPT

  1. انتقل إلى ChatGPT وانقر على أيقونة الملف الشخصي في الزاوية العلوية اليمنى من الصفحة.

Image
  1. انقر على إدارة مساحة العمل المشتركة

ChatGPT workspace menu with Manage workspace selected under the organization switcher
  1. انقر على الاتصالات ثم ضمن «الموصلات المتزامنة»تمكين المزامنة

Connectors page with Google Drive sync prompt and Enable Sync button highlighted
  1. تأكد من تحديد مُدار بواسطة المسؤول وانقر على التالي

Google Drive connection setup with Admin-managed setup selected over Self-service setup
  1. اكتب اسم عرض. نوصي باستخدام اسم Google Workspace الخاص بك.

يرجى ملاحظة أننا لا ندعم حاليًا تغيير اسم اتصالك.

Google Workspace connector setup dialog with display name Dolores Labs entered
  1. انقر على حفظ المسودة والمتابعة

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

Google Workspace connection setup step prompting upload of a service account key and admin email address
  1. اكتب عنوان البريد الإلكتروني للمسؤول. هذا هو حساب المسؤول الذي أنشأته سابقًا.

Image
  1. انقر على حفظ.

ChatGPT Connections credentials dialog with service account key and Google Workspace admin email entered
  1. اختر ما إذا كنت تريد تضمين الملفات الموجودة في My Drive لكل مستخدميك.

ChatGPT Connections modal for User files with Include user My Drives enabled at step 2 of 5
  1. انقر على التالي

ChatGPT admin Connections modal for User files with Include user My Drives enabled in step 2 of 5
  1. اختر كيفية إدارة مساحات Drive المشتركة. ندعم السيناريوهات الثلاثة التالية:

  1. إذا كنت تريد تضمين جميع مساحات Drive المشتركة، فاختر التضمين افتراضيًا ولا تضف معرّفات مساحات Drive المشتركة المراد استبعادها

  2. إذا كنت تريد تضمين معظم مساحات Drive المشتركة، فاختر التضمين افتراضيًا وأضف معرّفات مساحات Drive المشتركة التي تريد استبعادها

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

ChatGPT admin Shared drives setup with Include by default selected and an Excluded Shared drives field
  1. للبحث عن معرّف مساحة Drive مشتركة، انتقل إليها في متصفح ويب. يمثّل الجزء الأخير من عنوان URL معرّف مساحة Drive المشتركة.

في المثال التالي، يكون 0ADvY03uUbEcQUk9PVA

Google Drive shared drive with Manage members visible for Example Shared Drive
  1. انقر على التالي

ChatGPT admin Connections modal for Shared drives with Include by default selected at step 3 of 5
  1. اختر من ينبغي أن يكون لديه حق الوصول إلى اتصال Google Drive. يمكنك إما تحديد مسؤولي مساحة عمل ChatGPT المشتركة فقط، أو تمكينه للجميع. إذا تم تمكينه للجميع، فسيتم تضمين المستخدمين الجدد المضافين إلى مساحة العمل المشتركة تلقائيًا.

Google Drive connector permission set to Admins only for workspace members
  1. انقر على بدء المزامنة

Image
  1. تم الآن إنشاء اتصال 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
  1. مرّر المؤشر فوق IAM & Admin

Google Cloud Console navigation with IAM & Admin open and Organization Policies selected
  1. انقر على سياسات المؤسسة

Google Cloud Console IAM & Admin menu opened to Organization Policies
  1. ابحث عن iam.disableServiceAccountKeyCreation

Google Cloud organization policies for the ChatGPT Google Connector project
  1. انقر على نتيجة constraints/iam.disableServiceAccountKeyCreation

Image
  1. انقر على … للصف الذي يحمل معرّف iam.disableServiceAccountKeyCreation

Organization policies filtered to Disable service account key creation for the ChatGPT Google Connector project
  1. انقر على تعديل السياسة. إذا كان خيار تعديل السياسة معطّلًا، فستحتاج إلى أن تصبح مسؤول سياسات المؤسسة.

Google Cloud Organization Policies filtered to Disable service account key creation with Edit policy menu open
  1. انقر على تجاوز سياسة الأصل

Image
  1. انقر على إضافة قاعدة

Edit policy page for Disable service account key creation with Override parent's policy selected
  1. انقر على تعيين السياسة

Google Cloud Edit policy page with Override parent's policy selected and enforcement set to Off
  1. يمكنك الآن إنشاء مفتاح حساب خدمة. قد يستغرق هذا التمكين عدة دقائق حتى يصبح ساريًا.

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
  1. انقر على مؤسستك

Image
  1. انقر على أيقونة القائمة في الزاوية العلوية اليسرى

Image
  1. مرّر المؤشر فوق IAM & Admin

Google Cloud console navigation menu open with Google Cloud Setup pinned
  1. انقر على IAM

Image
  1. انقر على القلم لحسابك

Google Cloud IAM page for dolores-lab.com showing organization permissions and the Grant Access action
  1. انقر على إضافة دور آخر

Google Cloud IAM dialog assigning the Organization Administrator role for dolores-lab.com
  1. ابحث عن مسؤول سياسات المؤسسة

Google Cloud IAM edit access dialog assigning the Organization Administrator role to a user
  1. انقر على مسؤول سياسات المؤسسة

Google Cloud IAM role picker with Organization Policy Administrator selected while editing access
  1. انقر على حفظ

Google Cloud IAM access editor assigning Organization Administrator and Organization Policy Administrator roles
  1. أصبح حسابك الآن يملك إذن تمكين إنشاء مفتاح حساب الخدمة. قد يستغرق ذلك عدة دقائق حتى يصبح ساريًا.

استخدام اسم مستعار لبريد Google الإلكتروني للحفاظ على حسابات بريد إلكتروني مختلفة لـ Google Workspace وChatGPT

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

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

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

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

اتبع هذه الخطوات في وحدة تحكم مسؤول Google لضمان إمكانية ربط بريد ChatGPT الإلكتروني لكل مستخدم بحسابه في Google Workspace:

  1. انتقل إلى وحدة تحكم المسؤول. انتقل إلى: الدليل > المستخدمون

Image
  1. حدد مستخدمًا، ثم «إضافة عناوين بريد إلكتروني بديلة».

Google Admin user details page with Add alternate emails action highlighted
  1. أضف بريدًا إلكترونيًا بديلاً. تأكد من أنه يطابق حساب ChatGPT الخاص بالمستخدم.

Google Workspace Admin alternate email alias form with alias-testing-alt-email on bytesheaven.com
  1. حدد حفظ

---

القيود المعروفة

عناوين البريد الإلكتروني الشخصية غير مدعومة

لا يمكن للمستخدمين الذين يسجّلون في ChatGPT باستخدام عناوين شخصية (مثل example@gmail.com) الاتصال بـ Google Workspace. هذا الإعداد غير مدعوم ويشكل خطرًا أمنيًا، لأنه يتيح الوصول إلى البيانات الداخلية من خارج المؤسسة.

أسماء Gmail المستعارة باستخدام "+" غير مدعومة

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

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

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

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

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