Topic: API for User and all units associated to that user under user edit
Hi,
I have to search a user and all units associated to that user.
I am working on a web app from I have to edit users, when editing a individual user, I need to get all units which are assigned to that user.
Perhaps, it is similar to searching "avl_unit" and it's all sub itmes such as "unit_sensors", explained here: https://sdk.wialon.com/wiki/en/sidebar/ … arch_items
Please take a look on the screenshot attached below. It shows a user edit in a modal, and under access tab, you can see colored units which are assigned to that user.
Want I want is to search all units which associates with a user. In the Wailon CMS dashboard, it works fine. But I could not find the API to search the same results.
I also could not find the API to search "Presets of access rights for units"
Can anyone here help me find these APIs? Or let me know what APIs I need to hit in order to get the same results? Thanks
I look forward to hearing from you.