- 开放平台-组织人事接口
- 开放平台认证步骤
- 同步人员POST
- 同步部门POST
- 同步分部POST
- 同步岗位POST
- 同步条件矩阵数据POST
- 同步兼职信息POST
- 封存部门POST
- 解封部门POST
- 人员返聘POST
- 基本信息自定义字段信息POST
- 部门自定义字段信息POST
- 分部自定义字段信息POST
- 人员查询POST
- 组织查询POST
- 岗位查询POST
- 条件矩阵-保存数据POST
- 条件矩阵-删除数据POST
- 条件矩阵-条件查询取值POST
- 条件矩阵-生产视图创建语句(兼容E9)POST
- 批量新增职务POST
- 同步职称POST
- 群组列表查询POST
- 批量删除群组POST
- 新增或修改群组POST
- 批量封存/解封群组POST
- 群组成员查询接口POST
- 新增群组成员POST
- 删除群组成员POST
- 添加群组可见范围POST
- 更新群组可见范围项POST
- 删除群组可见范围项POST
- 根据组织或者人员查询全路径数据POST
- 同步人力共享权限数据POST
- 同步外部联系人POST
- 同步外部企业POST
- 同步外部部门POST
- 同步虚拟维度人员POST
- 查询虚拟维度人员POST
人员查询
POST
/api/hrm/restful/queryEmployee
请求参数
Body 参数application/json
jobNumList
array[string]
工号
subcompanyIds
array[string]
分部id
departmentIds
array[string]
部门id
positionList
array[string]
岗位id
ids
array[string]
人员id
mobileList
array[string]
手机
containUserInfo
boolean
加载个人信息
containAvatar
boolean
包含头像信息
containEmployeeExtend
boolean
加载基本信息自定义
containUserInfoExtend
boolean
加载个人信息自定义
current
integer
分页-当前页
pageSize
integer
分页-页大小
userStatusList
array[string]
人员状态
nameLikeList
array[string]
名称模糊查询
returnFieldList
array[string]
指定返回字段内容
示例:["id"] 仅返回人员id;["id","username"] 仅返回人员id、人员名称
needReturnBrowserInfo
boolean
浏览数据详细信息
0401基线后支持
needExtraOrgInfo
boolean
需要返回兼职信息
0401基线后支持
multiFieldList
array[string]
需要返回的多语言字段列表
account
string
账号
secLevelRange
object
安全级别
from
integer
安全级别开始
to
integer
安全级别结束
needAccountInfo
boolean
是否返回账号信息
account 账号、bindEmail 登录邮箱、bindMobile 登录手机、loginid 登录名
needCompanyYear
boolean
是否需要返回司龄
directSuperiorList
array[string]
上级
containSubordinates
boolean
是否含下级
createTime
object
创建日期
from
string
创建日期-开始
to
string
创建日期-结束
updateTime
object
修改日期
from
string
修改日期-开始
to
string
修改日期-结束
示例
{
"jobNumList": [
"RYGH5612"
],
"containEmployeeExtend": true
}
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST '/api/hrm/restful/queryEmployee' \
--header 'Content-Type: application/json' \
--data-raw '{
"jobNumList":["RYGH5612"],
"containEmployeeExtend":true
}'
返回响应
🟢200成功
application/json
Body
message
object
必需
errcode
string
必需
errmsg
string
必需
data
object
必需
current
integer
当前页
total
integer
总数
data
array [object {62}]
必需
pageSize
integer
页大小
示例
{
"message": {
"errcode": "0",
"errmsg": "success"
},
"data": {
"current": 1,
"total": 1,
"data": [
{
"employeeExtend": {
"802830263522590723": {
"title": "单行文本",
"value": "aassff"
}
},
"education": {
"id": "767257884333465620",
"name": "高中及以下"
},
"accumfundaccount": "sss",
"nation": {
"id": "767257884333465630",
"name": "汉族"
},
"residence_place": "1122",
"modifier": "2226184113539534645",
"active_date": "2022-12-12",
"type": "inside",
"bankid": "798795283734192129",
"id_no": "342401198802051876",
"bank_accountname": "aass",
"id": "805851627118034951",
"bank_account": "aaas",
"created": "2022-12-12",
"degree": {
"id": "767257884333465627",
"name": "博士"
},
"first_work_date": "2022-12-17",
"work_year": 0,
"formdata": "807746708413734913",
"login_status": "invited",
"native_place": "安徽省",
"last_update_time": "2022-12-17",
"pinyin": "anbang,anbeng",
"user_id": "2227082695389976109",
"child_status": "ffss",
"birthday": "1988-02-05",
"tenant_key": "t7emfkqmmm",
"family_contact": "3344",
"sec_level": 0,
"update_time": "2022-12-17",
"job_num": "RYGH5612",
"department": "2226184113543634646",
"logogram": "ab",
"personnel_status": "5",
"im_uid": "805851627118034951",
"household_type": {
"id": "767257884333465611",
"name": "本市城镇"
},
"graduate_school": "aaass",
"marital_status": "married",
"politics_status": {
"id": "767257884333465615",
"name": "党员(含预备党员)"
},
"age": 34,
"username": "安蚌"
}
],
"pageSize": 100
}
}
修改于 2025-04-02 08:11:24