update_item_access

To give a user access rights to an item, use the command user/update_item_access:

Copied!
svc=user/update_item_access&params={"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

Copied!
{}	/* an empty object if the execution is successful, if not, an error code */

Error codes

Error codeDescription
7Failed to fetch the user with ACL (ADF_ACL_USER_SET_ITEMS_ACCESS), or the user doesn't have rights to edit this object.
6Failed to update access to the object.
Download PDF file
Download Word document

See also