1

Presets of Access Rights for Units

Topic: Presets of Access Rights for Units

Hi there,

We would like to API call “Presets of Access Rights for Units” that are already configured in Wialon CMS for the dealer admin account “gps_platform_admin”.

For example how do we look up the following presets No Access, Full Access, Read Only, Full Access-NotSet, and End user access. Please see attached circled information below in yellow. We would like to Read and Edit preset label names, and permissions for this presets from our web application.

Thanks

2

Presets of Access Rights for Units

Re: Presets of Access Rights for Units

Hello. User can have "access_templates" custom property (update with item/update_custom_property), that contains a JSON with those presets:

+ access_templates example
{
    "avl_unit": [
        {
            "id": 0,
            "name": "No access",
            "color": "rgb(255, 217, 191)",
            "acl": 0
        },
        {
            "id": 1,
            "name": "Full access",
            "color": "rgb(211, 191, 229)",
            "acl": -1
        },
        {
            "id": 2,
            "name": "Read only",
            "color": "rgb(191, 212, 242)",
            "acl": 16931
        },
        {
            "acl": 880333094897,
            "name": "Preset 4",
            "color": "rgb(202, 229, 191)",
            "id": 3
        },
        {
            "acl": 5,
            "name": "Preset 5",
            "color": "rgb(191, 242, 242)",
            "id": 4
        }
    ],
    "avl_unit_group": [],
    "avl_resource": [
        {
            "id": 0,
            "name": "Нет доступа",
            "color": "rgb(255, 217, 191)",
            "acl": 0
        },
        {
            "id": 1,
            "name": "Полный доступ",
            "color": "rgb(211, 191, 229)",
            "acl": -1
        },
        {
            "id": 2,
            "name": "Только чтение",
            "color": "rgb(191, 212, 242)",
            "acl": 16931
        },
        {
            "acl": 49,
            "name": "Шаблон 4",
            "color": "rgb(202, 229, 191)",
            "id": 3
        }
    ],
    "avl_route": [],
    "user": []
}

Also, maybe this playground example can help with access flags, it contains all of them, which currently present — https://sdk.wialon.com/playground/E3pLc5UZ/5

3

Presets of Access Rights for Units

Re: Presets of Access Rights for Units

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