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>}
Name | Description |
---|---|
userId | user ID |
itemId | item ID |
access | access rights: none (deny), view (view), execute commands (exec_cmd), edit (edit), manage (manage) |
{} /* empty object if execution successful, if not - error code */
Code | Value |
---|---|
1 | invalid session |
2 | invalid service name |
3 | invalid result |
4 | invalid format or value of parameters |
7 | access denied |