Manage user rights
To give a user access rights to an item, use the command user/update_item_access:
svc=user/update_item_access¶ms={"userId":<long>,
"itemId":<long>,
"access":<text>}
Parameters
| Name | Description |
| userId | user ID |
| itemId | item ID |
| access | access rights: none (deny), view (view), execute commands (exec_cmd), edit (edit), manage (manage) |
Response
{} /* empty object if execution successful, if not - error code */
Errors
| Code | Value |
| 1 | invalid session |
| 2 | invalid service name |
| 3 | invalid result |
| 4 | invalid format or value of parameters |
| 7 | access denied |