1

Presets of Access Rights for Users

(10/06/2021 11:37:36 отредактировано arsalanqayum332)

Тема: Presets of Access Rights for Users

Hi there,

I know that we can use this API https://sdk.wialon.com/wiki/en/sidebar/ … m_property to add or update an item (such as a user or unit) custom properties.

To add custom properties for a user or unit such as Presets of Access Rights for Users we followed this playground example https://sdk.wialon.com/playground/E3pLc5UZ/5 which works fine.

That's aside, my question is, now we're trying to API call to get these "Presets of access rights for units" from Wialon database, but we could not find an API in the Wialon API docs to to do so. Can you please point to the API we need to call to get "Presets of access rights for units" data, also shown on the screenshot attached in red.

Regards
Sikandar

  • Presets of Access Rights for Users
2

Presets of Access Rights for Users

Re: Presets of Access Rights for Users

Hello!

Please look here the answer https://forum.gurtam.com/viewtopic.php? … 46#p184746

Diana Cheley
Wialon Hosting Expert
Gurtam
3

Presets of Access Rights for Users

Re: Presets of Access Rights for Users

Thank you for your directions.

I was able to get User's custom properties with the help of core/search_item request. I passed 0x00000002 (2) data flag, along falgs: 1439

           

'core/batch',
                {
                    "params":[
                        {
                            "svc":"core/search_item",
                            "params":{
                                "id": user.getId(),
                                "flags": 2
                            }
                        },
                    ],
                    "flags": 1439
                },