This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
en:sidebar:remoteapi:apiref:user:get_items_access [28/01/2013 07:47] zuve |
en:sidebar:remoteapi:apiref:user:get_items_access [05/04/2016 14:41] stan |
||
---|---|---|---|
Line 2: | Line 2: | ||
====== Get access level ====== | ====== Get access level ====== | ||
- | To know what access rights over items user has at current moment use **user/get_items_access**: | + | To learn which access rights over items a user currently has, use **user/get_items_access**: |
<code javascript> | <code javascript> | ||
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 12: | Line 13: | ||
^ Name ^ Description ^ | ^ Name ^ Description ^ | ||
| userId | user ID | | | userId | user ID | | ||
- | | directAccess | return only items, on wich user has direct access rights | | + | | directAccess | return only items to which the user has direct access rights | |
- | | itemSuperclass | item type (the list of all available rights see in 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) | | ||
===== 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 */ | ||
+ | } | ||
} | } | ||
</code> | </code> | ||
+ | |||
+ | Access rights are described in chapter [[../core/check_items_billing]]. |
|