curl "https://api.scanova.io/multi-users/permission/" \
-H "Authorization: 401f7ac837da42b97f613d789819ff93537bee6a"
[
{
"name": "QR Codes",
"permissions": [
{ "id": 23, "code": "QR_CODE_CAN_VIEW", "name": "Can view QR Code", "description": "Allows viewing QR code details.", "is_boolean": true }
]
}
]
المستخدمون المشتركون والأدوار
سرد فئات الصلاحيات
GET /multi-users/permission/
GET
/
multi-users
/
permission
/
curl "https://api.scanova.io/multi-users/permission/" \
-H "Authorization: 401f7ac837da42b97f613d789819ff93537bee6a"
[
{
"name": "QR Codes",
"permissions": [
{ "id": 23, "code": "QR_CODE_CAN_VIEW", "name": "Can view QR Code", "description": "Allows viewing QR code details.", "is_boolean": true }
]
}
]
يسرد كل فئة صلاحيات فعّالة والصلاحيات المشتركة المتاحة ضمنها، على مضيف Management API (
غير مرقّم الصفحات. هذا هو البديل المجمَّع حسب الفئة، مقارنةً بقراءة معرّفات الصلاحيات من مصفوفة
api.scanova.io)، مع المصادقة باستخدام مفتاح Management API الخام الخاص بك.
GET https://api.scanova.io/multi-users/permission/
Authorization: 401f7ac837da42b97f613d789819ff93537bee6a
curl "https://api.scanova.io/multi-users/permission/" \
-H "Authorization: 401f7ac837da42b97f613d789819ff93537bee6a"
[
{
"name": "QR Codes",
"permissions": [
{ "id": 23, "code": "QR_CODE_CAN_VIEW", "name": "Can view QR Code", "description": "Allows viewing QR code details.", "is_boolean": true }
]
}
]
permissions الخاصة بدور موجود مسبقًا — استخدمه لبناء واجهة تحرير أدوار كاملة (خانات اختيار مجمَّعة حسب الفئة) دون الحاجة إلى جلب دور أولًا.
ذات صلة
- إنشاء دور مخصص — استخدم معرّفات الصلاحيات من هنا لبناء
permissions. - سرد الأدوار — الاطلاع على الصلاحيات الممنوحة بالفعل للأدوار الحالية.
- الأدوار والصلاحيات — شرح مُوجَّه للبشر لما تمنحه كل صلاحية.
- نظرة عامة على Management API — مخطط المصادقة وقواعد الحصة المطبّقة على نقطة النهاية هذه.
التفويضات
Send your Management API key as the raw value of the Authorization header — no "Bearer " or "Token " prefix, and no other characters. Example: Authorization: 401f7ac837da42b97f613d789819ff93537bee6a. A header containing more than one space-separated part is rejected outright. Requests also require the request's Host header to be the management API host (e.g. api.scanova.io) — the same key sent to the regular API host will not authenticate.
الاستجابة
200 - application/json
Permission categories with their permissions.
هل كانت هذه الصفحة مفيدة؟