PUT /admin/compliance/sod-rules/{id}
更新指定职责分离规则的名称、角色组或启用状态,启用后将阻止同时拥有互斥角色的用户分配
合规管理 - 职责分离 `bearerAuth` application/json
Request Parameters
| Name | In | Type | Required | Default | Example | Constraints | Description |
id |
path |
string |
Yes |
|
|
|
rule ID |
Request Body
Schema: dto.UpdateSoDRuleRequest
| Field | Type | Required | Example | Constraints | Description |
description |
string |
No |
Updated SoD rule description |
|
|
enabled |
boolean |
No |
True |
|
|
name |
string |
No |
Finance-Audit SoD |
|
|
roles_a |
string |
No |
["role_finance_admin"] |
|
|
roles_b |
string |
No |
["role_auditor"] |
|
|
Referenced Schemas
dto.ErrorResponse
| Field | Type | Required | Example | Constraints | Description |
code |
integer |
No |
400 |
|
|
message |
string |
No |
invalid request |
|
|
dto.SoDRuleItemResponse
| Field | Type | Required | Example | Constraints | Description |
code |
integer |
No |
|
|
|
data |
dto.SoDRuleResponse |
No |
|
|
|
message |
string |
No |
|
|
|
timestamp |
string |
No |
|
|
|
dto.SoDRuleResponse
| Field | Type | Required | Example | Constraints | Description |
description |
string |
No |
Finance and Audit roles must not be held by the same user |
|
|
enabled |
boolean |
No |
True |
|
|
id |
string |
No |
01JQ... |
|
|
name |
string |
No |
Finance-Audit SoD |
|
|
roles_a |
string |
No |
role_finance_admin |
|
|
roles_b |
string |
No |
role_audit |
|
|