To learn which access rights over items a user currently has, use user/get_items_access:
svc=user/get_items_access¶ms={"userId":<long>, "itemSuperclass":<text>}
Name | Description |
---|---|
userId | user ID |
itemSuperclass | item type (the list of all types see in the chapter Search items by property) |
{ <text>:<long> /* item ID: access rights */ }
Access rights:
Value | Description |
---|---|
0 | none |
0x00000007 | execute commands |
0x00000001 | view |
0x000FFFFF | edit |
0x7FFFFFFF | manage |
Code | Value |
---|---|
1 | invalid session |
2 | invalid service name |
3 | invalid result |
4 | invalid format or value of parameters |
7 | access denied |