Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision Both sides next revision
en:sidebar:remoteapi:apiref:user:get_items_access [29/11/2013 13:31]
127.0.0.1 external edit
en:sidebar:remoteapi:apiref:user:get_items_access [05/04/2016 14:41]
stan
Line 6: Line 6:
 svc=user/​get_items_access&​params={"​userId":<​long>,​ svc=user/​get_items_access&​params={"​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) |
 ===== 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]]. Access rights are described in chapter [[../​core/​check_items_billing]].
Follow us on Facebook Gurtam Wialon Twitter Gurtam Wialon info@gurtam.com   |   Copyright © 2002-2024 Gurtam