- 开放平台-组织人事接口
- 开放平台认证步骤
- 同步人员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
同步人员
POST
/api/hrm/restful/syncEmployee
1.
2.
只需要提供:数据规则字段的数据和想要更新字段的数据即可;例如 人员规则指定工号,且仅需更新名称,则内容提供job_num和username即可
请求参数
Body 参数application/json
data
array [object {55}]
数据内容
username
string
姓名
email
string
邮箱
superior
string
上级
mobile
string
手机
other_superior
array[string]
其他上级
alias
string
别名
telephone
string
电话
sex
string
性别
assistant
array[string]
助理
job_num
string
工号
hiredate
string
入职时间
department
string
所属组织
position
string
岗位
job_call
string
职称
grade
string
职级
location
string
办公地点
personnel_status
string
状态
id_no
string
身份证
birthday
string
出生日期
age
string
年龄
graduate_date
string
毕业日期
graduate_school
string
毕业院校
degree
string
学位
education
string
学历
marital_status
string
婚姻状况
native_place
string
籍贯
nation
string
民族
household_type
string
户口类型
politics_status
string
政治面貌
residence_place
string
现居住地
family_contact
string
家庭联系方式
first_work_date
string
首次参加工作日期
work_year
string
个人工龄(年)
child_status
string
子女状态
id
string
人员id
account
string
账号
1.
loginMobile
string
登录手机
loginEmail
string
登录邮箱
loginid
string
登录名
password
string
密码
1.
2.
主管团队管理员在【基本设置-系统级设置-人员同步账号校验规则】 开启 已存在用户且用户已登录不允许修改密码
login_status
string
登录状态
employeeExtend
object
基本信息自定义字段
userInfoExtend
object
自定义表单
resourceimageid
number
照片头像
sec_level
integer
安全级别
classification
string
密级
belongto
string
主账号
multiObj
object
多语言
dsporder
number
显示排序
accounttype
string
账号类型
resp_desc
string
职责描述
office
string
办公室
fax
string
传真
jobset_level
string
职等
leavedate
string
离职日期
仅当人员从 在职变成离职,才有效;
dataRule
object
数据规则
employee
string
人员规则
department
string
组织(含分部、部门)规则
position
string
岗位规则
grade
string
职级规则
pwdTransType
string
密码传输加密规则
apiTaskId
string
任务号
optId
string
操作者
emptyCustomVaueClearable
boolean
自定义字段内容清空标识
extKey
string
指定需要额外返回内容的key
当指定后,返回内容将提供:extKeyMap;是map对象,并返回指定的key和其内容;
"extKeyMap": {
"uuid": "1234"
}
示例
{
"data": [
{
"department": "5493376151437312",
"position":"1493376151437316",
"job_num":"WS001",
"username": "冰冰",
"alias":"阿满",
"email":"1122@email.com",
"mobile":"17317576779",
"telephone":"6058",
"sex":"male",
"hiredate":"2023-01-01",
"id_no":"342401158804061678",
"superior":"972098004390019071",
"other_superior":["972098004390019076","972098004390019072"],
"birthday":"1911-02-05",
"age":"16",
"graduate_school":"安徽科技学院",
"graduate_date":"1992-02-01",
"degree":"博士",
"education":"大专",
"personnel_status":"3",
"job_call":"972098004390019075",
"grade":"172098004390019071",
"marital_status":"divorced",
"native_place":"安徽省",
"nation":"汉族",
"household_type":"本市农村",
"politics_status":"团员",
"residence_place":"上海市",
"family_contact":"021",
"first_work_date":"2022-01-01",
"work_year":3,
"child_status":"2个儿子",
"userInfoExtend":{
"766265897162719232":"单行文本a",
"766265965832413188":["测试兼职检查-212","安全级别"],
"766265965832413189":["5495890441397212937"]
},
"employeeExtend":{
"dhwb":"1122",
"drl":["张三"]
},
"multiObj":{
"username":{
"8":"dailishangd",
"9":"代理商-繁体"
}
}
}
],
"dataRule": {
"employee": "username",
"department":"id"
}
}
示例代码
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/syncEmployee' \
--header 'Content-Type: application/json' \
--data-raw '{
"data": [
{
"department": "5493376151437312",
"position":"1493376151437316",
"job_num":"WS001",
"username": "冰冰",
"alias":"阿满",
"email":"1122@email.com",
"mobile":"17317576779",
"telephone":"6058",
"sex":"male",
"hiredate":"2023-01-01",
"id_no":"342401158804061678",
"superior":"972098004390019071",
"other_superior":["972098004390019076","972098004390019072"],
"birthday":"1911-02-05",
"age":"16",
"graduate_school":"安徽科技学院",
"graduate_date":"1992-02-01",
"degree":"博士",
"education":"大专",
"personnel_status":"3",
"job_call":"972098004390019075",
"grade":"172098004390019071",
"marital_status":"divorced",
"native_place":"安徽省",
"nation":"汉族",
"household_type":"本市农村",
"politics_status":"团员",
"residence_place":"上海市",
"family_contact":"021",
"first_work_date":"2022-01-01",
"work_year":3,
"child_status":"2个儿子",
"userInfoExtend":{
"766265897162719232":"单行文本a",
"766265965832413188":["测试兼职检查-212","安全级别"],
"766265965832413189":["5495890441397212937"]
},
"employeeExtend":{
"dhwb":"1122",
"drl":["张三"]
},
"multiObj":{
"username":{
"8":"dailishangd",
"9":"代理商-繁体"
}
}
}
],
"dataRule": {
"employee": "username",
"department":"id"
}
}'
返回响应
🟢200成功
application/json
Body
code
integer
api状态
msg
string
描述
status
boolean
状态
data
array [object {5}]
必需
keyValue
string
数据唯一字段值
operate
string
同步操作类型
status
string
状态
errcode
string
失败原因
needRepush
boolean
可选
示例
{
"message": {
"errcode": "0",
"errmsg": "success"
},
"data": [
{
"keyValue": "接布议阶五",
"operate": "UPDATE",
"status": "ERROR",
"errcode": "组织 未找到:711513701328371713",
"needRepush": false
}
]
}
修改于 2025-05-20 04:16:03