get_items_access

To learn what access rights a user currently has to objects, use the following request:

Copied!
svc=user/get_items_access&params={"userId":<long>,
				  "directAccess":<bool>,
				  "itemSuperclass":"<text>",
				  "flags":<uint>}

Parameters

The required parameters are marked with an asterisk (*).

Name

Description

userId*

User ID.

directAccess*

Return only the objects to which the user has direct access rights.

itemSuperclass*

Object type. See the list of all types here.

flags

Flags. Return: 0x1 for combined access level, 0x2 for direct access level.

Response

Copied!
{
"<text>": /* item ID */
	{	
		"cacl":<long>,	/* combined access level */
		"dacl":<long>	/* direct access level */
	}
}

Access rights are described here.

Error codes

Error codeDescription
7Failed to fetch user.
Download PDF file
Download Word document

See also