Create role

The permission to create a role must be a subset of the current account permissions

for example: http://api.shinemonitor.com/public/?sign=45a0317337cad1b975b7cc8e6ae35401daa5c356&salt=6799118618252297881&token=5b13e18eaa179d4bdce4cf2cc0e66eaa506c7f27ccac6b9e7beaa190ec0e386f&action=createRole&name=ROLE00&group=PLANT,CREATE_PLANT(1)&source=0&_app_client_=android&_app_id_=com.demo.test&_app_version_=3.6.2.1

Parameter Description Required
action createRole True
name role name True
group Groups and items within groups True

response: No text

{
    "err":0,
    "desc":"ERR_NONE"
}

possible errors:

Response error code Description Details
0x0006 ERR_FORMAT_ERROR Format error
0x000B ERR_NO_PERMISSION No permissions
0x0170 ERR_NOT_FOUND_DEFINEDROLE Role not found
0x0184 ERR_NOT_FOUND_PERMISSION_GROUP Unable to find permission group
Copyright © eybond 2022 all right reserved,powered by Gitbook文档更新时间: 2023-07-18 16:43:38

results matching ""

    No results matching ""