更新时间:2024-05-27 GMT+08:00
分享

查询用户信息

功能介绍

查询租户下用户信息。

URI

GET /basic/message/public/api/v1/users

请求参数

表1 路径参数

参数

是否必选

参数类型

描述

tenantId

String

租户ID

请求示例

GET /basic/message/public/api/v1/users?tenantId=123456000001150600

响应参数

状态码: 200

表2 响应Body参数

参数

参数类型

描述

code

String

返回码

message

String

返回码描述

datas

Array of BasicUserInfo

返回数据

totalCount

Long

返回数据总条数

表3 BasicUserInfo

参数

参数类型

描述

tenantId

String

租户ID

userId

String

用户ID

username

String

用户名称

nickname

String

用户昵称

orgCode

String

部门编码

userLevel

Integer

用户级别

effectTime

String

生效时间

expiredTime

String

失效时间

reserve1

String

扩展字段

reserve2

String

扩展字段

reserve3

String

扩展字段

reserve4

String

扩展字段

reserve5

String

扩展字段

userRoleLists

Array of UserRoleEntity

用户角色列表

表4 UserRoleEntity

参数

参数类型

描述

userId

String

用户ID

roleId

String

角色ID

roleName

String

角色名称

roleLevel

Integer

角色级别

响应示例

{
    "code": "PUB-000000",
    "message": "success",
    "datas": [
        {
            "tenantId": null,
            "userId": "1234562111b456997a5284f27c936a5",
            "username": "user1",
            "nickname": null,
            "orgCode": null,
            "userLevel": 5,
            "effectTime": null,
            "expiredTime": null,
            "reserve1": "123456-fc91-4d08-9145-3d5c47255351",
            "reserve2": "IPDCenter",
            "reserve3": null,
            "reserve4": null,
            "reserve5": null,
            "userRoleLists": [
                {
                    "userId": "1234562111b456997a5284f27c936a5",
                    "roleId": "-1",
                    "roleName": "系统管理员",
                    "roleLevel": 1
                },
                {
                    "userId": "1234562111b456997a5284f27c936a5",
                    "roleId": "-4",
                    "roleName": "合作伙伴管理员",
                    "roleLevel": 1
                }
            ]
        }
    ],
    "totalCount": 1
}

错误码

请参见错误码

分享:

    相关文档

    相关产品