Query role
The query will return all permission groups owned by the role, as well as the permission items in each group
Parameter | Description | Required |
---|---|---|
action | queryRoles | True |
i18n | Internationalized language, refer to Multi-Language Support | True |
response:
Parameter | Description | Required |
---|---|---|
rid | Role id | True |
name | Role name | True |
group[x].name | Permission group name | False |
group[x].i18n | Internationalization description of permission group names, refer to Multi-Language Support | False |
group[x].item[x].name | Permission Item Name | False |
group[x].item[x].i18n | Internationalization description of permission items, refer to Multi-Language Support | False |
gts | Role create time , zero time zone, format: yyyy-mm-dd hh:mi:ss | True |
Possible errors:
Response error code | Description | Details |
---|---|---|
0x0006 | ERR_FORMAT_ERROR | Format error |
0x0170 | ERR_NOT_FOUND_DEFINEDROLE | Role not found |
0x0184 | ERR_NOT_FOUND_PERMISSION_GROUP | Unable to find permission group |