2
Manifest — khai báo permissions
Permission key theo convention workflow.<group>.<feature>.<action>. fields/scopeVars theo plan data-scope (manifest v1.1).
{
"key": "workflow",
"name": "Quy trình & Connector",
"version": "1.1.0 (đích)",
"permissions": [
{
"group": "workflow",
"feature": "definition",
"label": "Quy trình / Luồng duyệt",
"actions": [
"view",
"configure"
]
},
{
"group": "workflow",
"feature": "ticket",
"label": "Phiếu / Ticket",
"actions": [
"view",
"create",
"assign",
"approve"
]
},
{
"group": "integration",
"feature": "connector",
"label": "Kết nối (Connector)",
"actions": [
"view",
"configure",
"test"
]
},
{
"group": "integration",
"feature": "credential",
"label": "Thông tin xác thực",
"actions": [
"view",
"configure",
"rotate"
]
}
]
}
4
Ma trận quyền — vai trò × feature
Vai trò theo WS0. R xem · W tạo/sửa · A duyệt · — không có quyền.
| Feature | QTHT | GIAM_DOC | QL_DAO_TAO | TUYEN_SINH | GIAO_VU | GIAO_VIEN | KE_TOAN | NHAN_SU |
| definition | W | R | — | — | — | — | — | — |
| ticket | R | R | A* | — | W* | — | A* | A* |
| connector | W | R | — | — | — | — | — | — |
| credential | W | — | — | — | — | — | — | — |
¹ chỉ bản ghi mình phụ trách · ² chỉ của chính mình · W·A = tạo/sửa + duyệt
* quyền duyệt ticket theo vai trò khai trong từng bước của luồng — ma trận chỉ là mặc định.