update_item_access

To give a user access rights to an item, use the method 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 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.

If you find a mistake in the text, please select it and press Ctrl+Enter.

Report a mistake

Your message was sent. Thank you!

An error occurred while submitting the form