Create Role (إنشاء دور)
Last updated: October 28, 2025
Create Role (إنشاء دور)**
هذه الصفحة تُستخدم لإنشاء أدوار وصلاحيات مختلفة للمستخدمين (Admins) داخل النظام — أي لتحديد ما الذي يمكنهم فعله أو لا يمكنهم فعله في لوحة التحكم.
---
### **الموقع داخل النظام**
المسار هو:
**Settings → Roles → Create Role**
أي من القائمة الجانبية اختر **Settings (الإعدادات)**، ثم **Roles (الأدوار)**، وبعدها اضغط على **Create Role (إنشاء دور)**.
---
### **مكونات الصفحة**
#### 1. **Permissions (الصلاحيات)**
في هذا القسم، يمكنك تحديد ما هي المهام التي يُسمح للمستخدم الذي يحمل هذا الدور بالقيام بها.
توجد مجموعة من الأقسام الرئيسية مثل:
* **Dashboard**
إمكانية الدخول إلى الصفحة الرئيسية للوحة التحكم.
* **Sales (المبيعات)**
وتشمل عدة فئات فرعية:
* **Orders (الطلبات)**
* **Create**: إنشاء طلب جديد.
* **View**: عرض الطلبات.
* **Cancel**: إلغاء الطلبات.
* **Invoices (الفواتير)**
* **View / Create**: عرض أو إنشاء فواتير.
* **Shipments (الشحنات)**
* **View / Create**: عرض أو إنشاء تفاصيل الشحن.
* **Refunds (المرتجعات)**
* **View / Create**: عرض أو إنشاء مرتجعات.
* **Transactions (المعاملات)**
* صلاحيات عرض أو إدارة عمليات الدفع.
يمكنك تحديد المربعات ✅ أمام كل وظيفة لمنح أو منع الوصول إليها.
---
#### 2. **Name (الاسم)**
في الجزء الأيمن من الشاشة، يوجد حقل **Name**.
هنا تكتب اسم الدور، مثل:
* *Sales Manager* (مدير المبيعات)
* *Offer Manager* (مدير العروض)
* *Content Editor* (محرر المحتوى)
---
#### 3. **Description (الوصف)**
أسفل الاسم يوجد حقل **Description**.
اكتب فيه وصفًا يوضح وظيفة هذا الدور، مثل:
*"This role allows the user to manage sales orders and invoices only."*
أو بالعربية: *"هذا الدور يتيح للمستخدم إدارة الطلبات والفواتير فقط."*
---
#### 4. **حفظ الدور الجديد**
بعد الانتهاء من تحديد الاسم والوصف والصلاحيات المطلوبة:
1. اضغط على زر **Save Role** (حفظ الدور) في أعلى الصفحة.
2. سيتم إضافة الدور الجديد إلى قائمة الأدوار في النظام.
3. يمكنك بعد ذلك ربط هذا الدور بأي مستخدم عند إنشائه من خلال صفحة **Users**.
---
### **مثال عملي**
إذا أردت إنشاء دور خاص بموظف مسؤول فقط عن العروض (Promotions):
* الاسم: `Offer Manager`
* الوصف: `Can manage marketing offers only.`
* الصلاحيات: فعل فقط صلاحيات **Marketing → Promotions**، واترك باقي الأقسام غير محددة.
بهذا الشكل، هذا المستخدم لن يستطيع الدخول إلى المبيعات أو إعدادات الموقع.
---
### **Location in the System**
Path:
**Settings → Roles → Create Role**
This page allows you to **define user roles and permissions** — meaning you decide what actions each admin can perform inside the store’s dashboard.
---
### **Page Sections**
#### 1. **Permissions**
This section lists all modules of the system.
You can assign permissions for each by checking the boxes:
* **Dashboard** – access to the main admin homepage.
* **Sales** – includes multiple sub-sections:
* **Orders**
* *Create*: create new orders.
* *View*: view order details.
* *Cancel*: cancel orders.
* **Invoices**
* *View / Create*: manage invoices.
* **Shipments**
* *View / Create*: manage shipments.
* **Refunds**
* *View / Create*: handle returns.
* **Transactions**
* manage payment and transaction data.
Tick ✅ the permissions you want this role to have.
---
#### 2. **Name**
On the right side, the **Name** field defines what the role is called —
for example:
* *Sales Manager*
* *Offer Manager*
* *Product Editor*
---
#### 3. **Description**
Below the name, the **Description** field explains what the role does, e.g.:
* *"This role can manage orders and invoices only."*
or
* *"This role handles marketing promotions only."*
---
#### 4. **Saving the Role**
After setting all permissions and details:
1. Click **Save Role** (top-right).
2. The new role will appear in the roles list.
3. You can assign it to any admin user under **Settings → Users**.
---
### **Example**
If you want a role for someone who manages promotions only:
* **Name:** Offer Manager
* **Description:** Can manage marketing offers only.
* **Permissions:** Select only **Marketing → Promotions**, leave others unchecked.
This ensures that the user can’t access sales or configuration sections.