update_item_access
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>,
"accessMask":<long>}
Parameters
The required parameters are marked with an asterisk (*).
Name | Description |
---|---|
userId* | User ID. |
itemId* | Item ID. |
accessMask* | Access mask. See here. |
Response
{} /* an empty object if the execution is successful, if not, an error code */
Error codes
Error code | Description |
---|---|
7 | Failed to fetch the user with ACL (ADF_ACL_USER_SET_ITEMS_ACCESS), or the user doesn't have rights to edit this object. |
6 | Failed to update access to the object. |