批量导入员工信息


说明:用以批量导入某一企业下员工信息
接口地址:/api/user/import-users/
Http请求方式:POST
内容格式:application/json
权限:import_users
每批次最大可导入的员工数:100
参数:
参数 参数名 类型 是否必须 说明
organization code org_code string 公司号
users users List<user> 员工列表
timestamp timestamp string 时间戳
sign sign string 签名
user:
参数 参数名 类型 是否必须 说明
employee number ee_no string 员工号,一个公司内部需唯一
employee name ee_name string 员工姓名
email email string 邮件地址,唯一
mobile phone number mobile string 手机号,唯一
national id national_id string 身份信息
national id type national_id_type string 身份信息类型
birth birth date 出生日期,YYYY-MM-DD
gender gender string 性别可以是female, male, secret
entity entity string 子公司代号

BB支持以下几种身份信息类型:

ID
PASSPORT
GAT
HGSFZ
TBZ
OTHER

上述中

  • ID指中国身份证
  • PASSPORT指各国护照
  • GAT指港澳通行证
  • HGSFZ指韩国身份证
  • OTHER指其他上述未指明类型
返回值:
  • batch_no: 该次导入用户的唯一批次号
  • password: 该次导入用户的初始随机密码
请求示例:
{
     "org_code":"aonhewitt",
     "users":[
             {
                     "ee_no":"test014",
                     "ee_name":"testname001",
                     "email":"broo11k23@test.com",
                     "mobile":"139131156112",
                     "national_id":"4000201023303",
                     "nations_id_type":"passport",
                     "birth":"1991-1-1",
                     "gender":"female"
             },
             {
                     "ee_no":"test015",
                     "ee_name":"testname001",
                     "email":"broo22k312@test.com",
                     "mobile":"139130056111",
                     "national_id":"132e3dsdfsfs"
             }
             ]
 }
返回示例:
{
"result": {
    "batch_no": "da748552-c0de-4676-a01c-892a383a7bb1",
    "password": "LF7CC2"
},
"result_code": "user_import_success",
"result_message": "",
"success": true
}