Get Manageable User List¶
获取当前账号权限下可管理的所有用户列表。
请求格式¶
POST http://{apigw-address}/app-portal-service/v2.0/organization/user/list
请求参数(Header)¶
名称 |
是否必须 |
数据类型 |
描述 |
---|---|---|---|
Authorization |
true |
String |
Access Token,以Bearer Token表示。参阅 Log In 或 Refresh Access Token 获取Access Token。 |
请求参数(Body)¶
名称 |
是否必须 |
数据类型 |
描述 |
---|---|---|---|
pagination |
false |
Pagination请求结构体 |
分页参数。见 Pagination请求结构体>>。若不提供,则默认按照每页1000条数据的格式返回第0页的数据。 |
响应参数¶
名称 |
数据类型 |
描述 |
---|---|---|
data |
data结构体 |
以分页列表展示用户信息 |
data结构体¶
名称 |
数据类型 |
描述 |
---|---|---|
pagination |
Pagination结构体 |
分页信息 |
users |
UserDTO结构体 |
用户信息列表 |
Pagination结构体¶
名称 |
数据类型 |
描述 |
---|---|---|
pageNo |
Integer |
请求页数 |
pageSize |
Integer |
每页记录数 |
totalElements |
Long |
总记录数 |
UserDTO结构体¶
名称 |
数据类型 |
描述 |
---|---|---|
id |
String |
用户的ID |
name |
String |
用户名 |
domain |
String |
域名称 |
description |
String |
用户描述 |
nickName |
String |
用户昵称 |
phoneArea |
String |
用户注册电话的区号 |
phone |
String |
用户的注册手机号码 |
String |
用户的注册邮箱 |
|
createdTime |
String |
用户账户创建时间 |
joinTime |
String |
用户加入当前组织的时间 |
type |
Integer |
用户类型,0:App Portal账号,1:第三方域账号 |
exists |
Boolean |
用户是否在当前组织,true:存在,false:不存在,null:未启用 |
示例¶
请求示例¶
POST
http://{apigw-address}/app-portal-service/v2.0/organization/user/list
headers: {"Authorization":"Bearer APP_PORTAL_S_TDKKeqfYBK3m5z3LRgKVqThWDYnRBN44"}
body: {
"pageNo":0,
"pageSize":5,
"sorters":[]
}
返回示例¶
{
"code": 200,
"message": "",
"data": {
"pagination": {
"totalElements": 5,
"pageNo": 0,
"pageSize": 5
},
"users": [
{
"id": "userId_1",
"name": "asd@aaa.com",
"domain": "新增域测试",
"description": "",
"nickName": "",
"phoneArea": "",
"phone": "",
"email": "asd@aaa.com",
"createdTime": "2019-09-23 02:32:51.0",
"joinTime": "2019-09-23 02:32:52.0",
"type": 1
},
{
"id": "userId_2",
"name": "12345@qq.com",
"domain": "yangfantest",
"description": "",
"nickName": "",
"phoneArea": "",
"phone": "",
"email": "12345@qq.com",
"createdTime": "2019-09-20 06:46:34.0",
"joinTime": "2019-09-20 06:46:34.0",
"type": 1
},
{
"id": "userId_3",
"name": "435",
"domain": "",
"description": "",
"nickName": "",
"phoneArea": "",
"phone": "",
"email": "435@qq.com",
"createdTime": "2019-09-19 08:24:17.0",
"joinTime": "2019-09-19 08:24:17.0",
"type": 0
},
{
"id": "userId_4",
"name": "jiajie.chen",
"domain": "",
"description": "",
"nickName": "",
"phoneArea": "",
"phone": "",
"email": "jiajie.chen@envision-digital.com",
"createdTime": "2019-05-30 07:41:31.0",
"joinTime": "2019-09-11 09:42:54.0",
"type": 0
},
{
"id": "userId_5",
"name": "portal_test01",
"domain": "",
"description": "",
"nickName": "quququ",
"phoneArea": "",
"phone": "123232323",
"email": "portaltest01@email.com",
"createdTime": "2019-05-14 08:38:31.0",
"joinTime": "2019-09-06 14:09:01.0",
"type": 0
}
]
}
}