Get a list of roles
Testing
Get a list of roles under the application
Request Code Samples
curl --location --request GET 'https://api.mingdao.com/v3/app/roles' \
--header 'HAP-Appkey: {{appkey}}' \
--header 'HAP-Sign: {{sign}}'
Responses
application/json {
"data": {
"roles": [
{
"id": "role Id",
"name": "role name",
"roleType": "role type",
"desc": "role description",
"accounts": [
{
"id": "account ID",
"name": "user name",
"avatar": "User avatar link"
}
],
"departmentTrees": [
{
"id": "Department ID",
"name": "Department Name"
}
],
"departments": [
{
"id": "Department ID",
"name": "Department Name"
}
],
"jobs": [
{
"id": "position ID",
"name": "job title"
}
],
"orgRoleIds": [
"Organization Role ID"
]
}
]
},
"success": true
}
Modified at 2025-08-21 09:35:00