查询用户角色
功能介绍
查询用户角色接口。
URI
GET /basic/mgmt/public/api/v1/sysmgr/roles
请求参数
参数 |
是否必选 |
参数类型 |
描述 |
---|---|---|---|
tenantId |
是 |
String |
租户ID |
userName |
是 |
String |
用户名字 |
userId |
否 |
String |
用户ID |
请求示例
GET basic/mgmt/public/api/v1/sysmgr/roles?userName=sysadmin&tenantId=9190086000001150600&userId=1008600000089987983
响应参数
状态码: 200
参数 |
参数类型 |
描述 |
---|---|---|
code |
String |
返回码 |
message |
String |
返回码描述 |
totalCount |
Long |
返回数据总条数 |
参数 |
参数类型 |
描述 |
---|---|---|
roleId |
String |
角色ID |
roleName |
String |
角色名称 |
roleLeve |
Array of UserRoleEntity |
角色级别 |
响应示例
{ "reserve": null, "datas": [ { "roleId": "-1", "roleName": "系统管理员", "roleLevel": null }, { "roleId": "-2", "roleName": "安全保密员", "roleLevel": null }, { "roleId": "-3", "roleName": "安全审计员", "roleLevel": null } ], "totalCount": null, "error_code": "IPDC.01020000", "error_msg": "success" }
错误码
请参见错误码。