This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
en:sidebar:remoteapi:apiref:user:get_items_access [13/02/2013 07:26] alek |
en:sidebar:remoteapi:apiref:user:get_items_access [06/04/2020 10:51] chdi [Parameters] |
||
---|---|---|---|
Line 6: | Line 6: | ||
svc=user/get_items_access¶ms={"userId":<long>, | svc=user/get_items_access¶ms={"userId":<long>, | ||
"directAccess":<bool>, | "directAccess":<bool>, | ||
- | "itemSuperclass":<text>} | + | "itemSuperclass":<text>, |
+ | "flags":<uint>} | ||
</code> | </code> | ||
Line 14: | Line 15: | ||
| directAccess | return only items to which the user has direct access rights | | | directAccess | return only items to which the user has direct access rights | | ||
| itemSuperclass | item type (the list of all types see in the chapter [[../core/search_items|]]) | | | itemSuperclass | item type (the list of all types see in the chapter [[../core/search_items|]]) | | ||
+ | | flags | flags (return: 0x1 - combined access level, 0x2 - direct access level), optional, default value = 1 | | ||
===== Response ===== | ===== Response ===== | ||
<code=javascript> | <code=javascript> | ||
{ | { | ||
- | <text>:<long> /* item ID: access rights */ | + | <text>: /* item ID */ |
+ | { | ||
+ | "cacl":<long>, /* combined access level */ | ||
+ | "dacl":<long> /* direct access level */ | ||
+ | } | ||
+ | } | ||
+ | |||
+ | /* "directAccess":1 there is received only combined access level */ | ||
+ | |||
+ | { | ||
+ | "<text>":<long> /* "element ID":"calc" */ | ||
+ | |||
} | } | ||
</code> | </code> | ||
+ | |||
+ | Access rights are described in chapter [[../core/check_items_billing]]. | ||
+ | |||
+ |
|