Get access level

To learn which access rights over items a user currently has, use user/get_items_access:

svc=user/get_items_access&params={"userId":<long>,
				  "itemSuperclass":<text>}

Parameters

Name Description
userId user ID
itemSuperclass item type (the list of all types see in the chapter Search items by property)

Response

{
	<text>:<long>	/* item ID: access rights */
}

Access rights:

Value Description
0 none
0x00000007 execute commands
0x00000001 view
0x000FFFFF edit
0x7FFFFFFF manage

Errors

Code Value
1 invalid session
2 invalid service name
3 invalid result
4 invalid format or value of parameters
7 access denied
Follow us on Facebook Gurtam Wialon Twitter Gurtam Wialon info@gurtam.com   |   Copyright © 2002-2021 Gurtam