get_items_access
To learn what access rights a user currently has to objects, use the following request:
svc=user/get_items_access¶ms={"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
{
"<text>": /* item ID */
{
"cacl":<long>, /* combined access level */
"dacl":<long> /* direct access level */
}
}
Access rights are described here.
Error codes
Error code | Description |
---|---|
7 | Failed to fetch user. |