# إعداد Entra

لكي تقوم بتمكين Entra في تثبيت ngSurvey الخاص بك، عليك أولاً إنشاء تسجيل تطبيق جديد في [Azure ](https://portal.azure.com)بوابة Active Directory.

![](/files/a23b34c5a494b64bc9744354663754f1bcf7962d)

سيسمح لك هذا التطبيق المُنشأ بربط NGSurvey بـ Entra. قم بإعداده باستخدام اسمه وواجهة إعادة التوجيه (redirection URI) التي يجب أن تكون URI التي تم تثبيت ngSurvey عليها. تأكد أيضًا من تعيين Redirect URI كـ Single-page Application (SPA).

![](/files/1a62444684b3c875017f6c5a30cbeccab430e7a6)

بعد تسجيل التطبيق افتح أذونات API الخاصة به وأضف إليه إذن User.ReadAll و Groups.ReadAll.<br>

![](/files/97ee07de8174dfc0009a43837d7e7dae7069032a)

<figure><img src="/files/bee16e8547dc5f21b484cfd72f67a6cc7e996213" alt=""><figcaption></figcaption></figure>

{% hint style="warning" %}
مستخدمو Entra الذين يمكنهم [إضافة مستخدمين جدد](/ar/installation-setup/installation/active-directory/active-directory-users.md) في ngSurvey مطلوب أن يكون لديهم كلا الإذنين المعينين في حساب دليل Entra الخاص بهم من أجل استعلام قائمة مستخدمي Entra وربط المستخدمين بـ ngSurvey.    &#x20;
{% endhint %}

في شاشة الأذونات امنح موافقة المشرف على الأذونات.

![](/files/ee79196767cf7759d4b093692319c72c54f592b5)

الخطوة الأخيرة هي تمكين ID tokens في صفحة مصادقة التطبيق.

![](/files/f5519b02027c1824cbe3012c4d4bd356aa87edfc)

بمجرد تسجيل التطبيق في Azure ستكون قريبًا جاهزًا للاستخدام، وما تبقى هو نسخ Application (client) ID من شاشة النظرة العامة لتسجيل تطبيق Entra الخاص بك.

![](/files/09269c8ed0cea014ed45206eb71a3130c274e72b)

ألصق معرف التطبيق هذا في إعدادات [النظام](/ar/installation-setup/system-settings.md) قسم Active Directory / Entra.

![](/files/98a7da739087d334335eb33168ee4c2fdd42424d)

انقر على زر الاختبار، إذا لم تكن مسجلاً في Entra سيعرض شاشة تسجيل دخول. قم بتسجيل الدخول للتأكد من أن الاتصال بين Azure و ngSurvey يعمل.&#x20;

عمل جيد، مستخدمو Entra الآن قادرون على تسجيل الدخول إلى ngSurvey باستخدام حساباتهم وستكون قادرًا [على إضافة مستخدمي Entra الجدد إلى ngSurvey](/ar/installation-setup/installation/azure-active-directory/untitled.md) لمنحهم حق الوصول واستخدام ngSurvey.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.ngsurvey.com/ar/installation-setup/installation/azure-active-directory/azure-active-directory-setup.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
