Get access level
To learn which access rights over items a user currently has, use user/get_items_access:
svc=user/get_items_access¶ms={"userId":<long>,
"directAccess":<bool>,
"itemSuperclass":<text>,
"flags":<uint>}
Parameters
Name | Description |
userId | user ID |
directAccess | return only items to which the user has direct access rights |
itemSuperclass | item type (the list of all types see in the chapter Search items by property) |
flags | flags (return: 0x1 - combined access level, 0x2 - direct access level) |
Response
{
<text>: /* item ID */
{
"cacl":<long>, /* combined access level */
"dacl":<long> /* direct access level */
}
}
Access rights are described in chapter Items access rights check.