POST api/UserManager/SetPermissions
Setting permissions
Request Information
URI Parameters
None.
Body Parameters
User role
RoleItem| Name | Description | Type | Additional information |
|---|---|---|---|
| RoleId |
Role ID |
integer |
None. |
| Permissions |
Permissions IDs |
Collection of integer |
None. |
| Name |
Role name |
string |
None. |
| SystemName |
SystemName name |
string |
None. |
| ReadOnly |
Permission to modify rights |
boolean |
None. |
| BuiltIn |
System role indication |
boolean |
None. |
| SystemRole |
System role |
boolean |
None. |
Request Formats
application/json, text/json
Sample:
{
"roleId": 1,
"permissions": [
1,
2
],
"name": "sample string 2",
"systemName": "sample string 3",
"readOnly": true,
"builtIn": true,
"systemRole": true
}
Response Information
Resource Description
Result containing the flag of successful operation
ObjResultOfBoolean| Name | Description | Type | Additional information |
|---|---|---|---|
| Data | boolean |
None. |
|
| Error |
Error description |
string |
None. |
| Success |
Flag of successful operation |
boolean |
None. |
| ErrorCode |
Error code |
integer |
None. |
Response Formats
application/json, text/json
Sample:
{
"data": true,
"error": "sample string 2",
"success": true,
"errorCode": 4
}
Parameter Information
role
User role
| Property | Description |
|---|---|
| RoleId (Int32) |
Role ID |
| Permissions (Int32[]) |
Permissions IDs |
| Name (String) |
Role name |
| SystemName (String) |
SystemName name |
| ReadOnly (Boolean) |
Permission to modify rights |
| BuiltIn (Boolean) |
System role indication |
| SystemRole (Boolean) |
System role |