九游会官网登录入口网页-ag8九游会j9登录入口允许用户自定义接口和代码逻辑来完成系统与第三方业务系统的数据同步,人员和组织的同步。本文主要介绍组织人员同步的数据操作规范。
本文档适用于组织和用户的同步。
用户信息包括3个部分:基本信息、用户属性和所在部门。新增用户(add)和修改用户(update)时,需列式该用户下的全量属性和所在部门。接口根据报文的用户所在部门对用户的身份进行增删改。
组织信息包括3个部分:基本信息、组织属性和组织职务。新增组织(add)和修改组织(update)时,需列式该组织下的全量组织属性和组织职务。接口同时根据报文对组织属性和组织职务进行增删改。
服务地址 | http://{centerserver}:20030/x_program_center/jaxrs/invoke/personsync/execute
|
调用方式 | http |
调用方法 | post |
请求报文content-type | application/json; charset=utf-8 |
响应报文content-type | application/json; charset=utf-8 |
本服务对应用户的增删改查操作,通过传请求报文的action参数进行对应的操作:
参数 | 执行操作 |
add | 新增用户 |
update | 修改用户 |
updatepwd | 修改密码 |
updatesuperior | 修改用户的汇报对象 |
delete | 删除用户 |
如:删除用户的请求报文为
{ "action": "delete", //删除用户 "flag" : "" //用户标志 }
|
用户信息包括3个部分:基本信息、用户属性和所在部门。新增用户,需列式该用户下的全量属性和所在部门。接口根据报文的用户所在部门对用户的身份进行新增。
请求报文
{ action : “add”, gendertype : "m", //性别.男:m,女:f,未知:d signature : "", //个性签名 description :"", // 描述. name: "", //名称,可重名. employee: "", //工号,必填,不可重复. unique: "", //唯一标识,不可重复,为空则使用自动填充值 distinguishedname: "", //识别名,系统自动填充,@p结尾. ordernumber: "", //排序号,升序排列,为空在最后 controllerlist: "", //个人管理者.默认为创建者。 superior: "", //汇报对象. mail: "", //邮件地址. weixin: "", //微信号. qq: "",//qq号. mobile: "", //必填,手机号. officephone: "", //办公电话. boarddate: "", //入职时间. birthday: "", //生日. age: "", //年龄 dingdingid: "", //钉钉人员id. dingdinghash: "" //钉钉人员哈希特征. attributelist : [//用户的其他属性,需全量列式 { name : "",//属性名称, value : "",//属性值,允许字符串或者数组 description : "" //属性描述 ordernumber: "" //排序号,升序排列,为空在最后 } ... ], unitlist : [//用户所在部门,需全量列式 { flag: "",//组织标志位,可以为组织唯一编码unique/组织的distinguishedname/组织id ordernumber: "",//在组织里的排序号,升序排列,为空在最后 description: "",//描述 duty : "",//用户的职务 position : ""//用户的岗位 } ... ] } |
属性 | 上级 | 类型 | 单值/多值 | 必填 | 说明 | 样例 |
action | string | single | true | 操作 | add | |
gendertype | string | single | true | 性别.男:m,女:f,未知:d | m | |
signature | string | single | 个性签名. | 香港移动 | ||
description | string | single | 描述. | 香港移动 | ||
name | string | single | true | 名称,可重名. | 张三 | |
employee | string | single | true | 工号,必填,不可重复. | p0780 | |
unique | string | single | 唯一标识,不可重复,为空则使用自动填充值 | fb3ea7de-d54f-4679-8e9a-35cb1e6b3d01 | ||
distinguishedname | string | single | 识别名,自动填充,@p结尾. | 张三@fb3ea7de-d54f-4679-8e9a-35cb1e6b3d01@p | ||
ordernumber | number | single | 排序号,升序排列,为空在最后 | 1 | ||
controllerarray | array | multi | 个人管理者.默认为创建者。 | 83de86fc-60bc-4b4c-955c-1085915865a4 | ||
superior | string | single | 汇报对象. 可以为汇报对象的distinguishedname 、unique 、employee、mobile。如果未找到汇报对象,不设置。 | p0180 | ||
string | single | 邮件地址. | 1234567@qq.com | |||
weixin | string | single | 微信号. | |||
string | single | qq号. | 1234567 | |||
mobile | string | single | true | 必填,手机号. | 13800000000 | |
officephone | string | single | 办公电话. | 0571-88888888 | ||
boarddate | date-string | single | 入职时间. | 2015-02-02 | ||
birthday | date-string | single | 生日. | 1995-10-12 | ||
age | number | single | 年龄 | 20 | ||
dingdingid | string | single | 钉钉人员id. | |||
dingdinghash | string | single | 钉钉人员哈希特征. | |||
zhengwudingdingid | string | single | 政务钉钉人员id. | 1000833324 | ||
zhengwudingdinghash | string | single | 政务钉钉人员哈希特征. | b388708eb84d6ae6328e03526a069ec864416a3b916ce22b8fb8bbfa3d84eb6b | ||
qiyeweixinid | string | single | 企业微信人员id. | |||
qiyeweixinhash | string | single | 企业微信人员哈希特征. | |||
attributelist | array | multi | 其他人员属性列表 | |||
name | attributelist | string | single | 属性名称 | 级别 | |
description | attributelist | string | single | 属性描述 | 级别描述 | |
value | attributelist | string/array | multi | 属性值 | 1 / [ "1" ] | |
ordernumber | attributelist | string | single | 排序号,升序排列,为空在最后 | 18315158 | |
unitlist | array | multi | 所在组织列表 | |||
flag | unitlist | string | single | 组织标志位,可以为组织唯一编码unique/组织的distinguishedname/组织id | "companyleader/"公司管理层@9b45cb75-52f8-4e73-8470-4cdc78230b7d@u", | |
ordernumber
| unitlist | string | single | 用户在组织里的排序号升序排列,为空在最后 | 123 | |
description
| unitlist | string | single | 描述 | 公司管理层 | |
duty | unitlist | string | single | 用户在该组织的职务 | 正职领导 | |
position | unitlist | string | single | 用户在该组织的岗位 | 管理岗 |
响应报文
{ "data": { "value": { "id" : "", //如果成功,用户64位id "result" : "", //响应成功为 success, 失败为error "description": ""//响应结果描述 } } }
|
用户信息包括3个部分:基本信息、用户属性和所在部门。修改用户,需列式该用户下的全量属性和所在部门。接口根据报文的用户所在部门对用户的身份进行增删改。
请求报文
{ action : “update”, gendertype : "m", //性别.男:m,女:f,未知:d signature : "", //个性签名 description :"", // 描述. name: "", //名称,可重名. employee: "", //工号,必填,不可重复. unique: "", //唯一标识,不可重复,为空则使用自动填充值 distinguishedname: "", //识别名,系统自动填充,@p结尾. ordernumber: "", //排序号,升序排列,为空在最后 controllerlist: "", //个人管理者.默认为创建者。 superior: "", //汇报对象. mail: "", //邮件地址. weixin: "", //微信号. qq: "",//qq号. mobile: "", //必填,手机号. officephone: "", //办公电话. boarddate: "", //入职时间. birthday: "", //生日. age: "", //年龄 dingdingid: "", //钉钉人员id. dingdinghash: "" //钉钉人员哈希特征. attributelist : [//用户的其他属性 { name : "",//属性名称, value : "",//属性值,允许字符串或者数组 description : "" //属性描述 ordernumber: "" //排序号,升序排列,为空在最后 } ... ], unitlist : [//用户所在部门 { flag: "",//组织唯一编码unique/组织的distinguishedname/组织id ordernumber: "",//在组织里的排序号,升序排列,为空在最后 description: "",//描述 duty : "",//用户在该组织的职务 position : ""//用户在该组织的岗位 } ... ] }
|
属性 | 上级 | 类型 | 单值/多值 | 必填 | 说明 | 样例 |
action | string | single | true | 操作 | update | |
gendertype | string | single | true | 性别.男:m,女:f,未知:d | m | |
signature | string | single | 个性签名. | 香港移动 | ||
description | string | single | 描述. | 香港移动 | ||
name | string | single | true | 名称,可重名. | 张三 | |
employee | string | single | true | 工号,必填,不可重复. | p0780 | |
unique | string | single | 唯一标识,不可重复,为空则使用自动填充值 | fb3ea7de-d54f-4679-8e9a-35cb1e6b3d01 | ||
distinguishedname | string | single | 识别名,自动填充,@p结尾. | 张三@fb3ea7de-d54f-4679-8e9a-35cb1e6b3d01@p | ||
ordernumber | number | single | 排序号,升序排列,为空在最后 | 1 | ||
controllerarray | array | multi | 个人管理者.默认为创建者。 | 83de86fc-60bc-4b4c-955c-1085915865a4 | ||
superior | string | single | 汇报对象. 可以为汇报对象的distinguishedname 、unique 、employee、mobile。如果未找到汇报对象,不设置。 | p0180 | ||
string | single | 邮件地址. | 1234567@qq.com | |||
weixin | string | single | 微信号. | |||
string | single | qq号. | 1234567 | |||
mobile | string | single | true | 必填,手机号. | 13800000000 | |
officephone | string | single | 办公电话. | 0571-88888888 | ||
boarddate | date-string | single | 入职时间. | 2015-02-02 | ||
birthday | date-string | single | 生日. | 1995-10-12 | ||
age | number | single | 年龄 | 20 | ||
dingdingid | string | single | 钉钉人员id. | |||
dingdinghash | string | single | 钉钉人员哈希特征. | |||
zhengwudingdingid | string | single | 政务钉钉人员id. | |||
zhengwudingdinghash | string | single | 政务钉钉人员哈希特征. | |||
qiyeweixinid | string | single | 企业微信人员id. | |||
qiyeweixinhash | string | single | 企业微信人员哈希特征. | |||
attributelist | array | multi | 其他人员属性列表 | |||
name | attributelist | string | single | 属性名称 | 级别 | |
description | attributelist | string | single | 属性描述 | 级别描述 | |
value | attributelist | string/array | multi | 属性值 | 1 / [ "1" ] | |
ordernumber | attributelist | string | single | 排序号,升序排列,为空在最后 | 18315158 | |
unitlist | array | multi | 所在组织列表 | |||
flag | unitlist | string | single | 组织标志位,可以为组织唯一编码unique/组织的distinguishedname/组织id | "companyleader/"公司管理层@9b45cb75-52f8-4e73-8470-4cdc78230b7d@u" | |
ordernumber
| unitlist | string | single | 用户在组织里的排序号升序排列,为空在最后 | 123 | |
description
| unitlist | string | single | 描述 | 公司管理层 | |
duty | unitlist | string | single | 用户在该组织的职务 | 正职领导 | |
position | unitlist | string | single | 用户在该组织的岗位 | 管理岗 |
响应报文
{ "data": { "value": { "id" : "", //如果成功,用户64位id "result" : "", //响应成功为 success, 失败为error "description": ""//响应结果描述 } } }
|
请求报文
{ action : "updatepwd", flag: "", //用户标志位 password: "" //新密码 }
|
说明:flag用来查找用户
可以为distinguishedname : "", //识别名,,@p结尾.
unique : "", //唯一标识,
employee: "", //工号,.
mobile: "", //,手机号.
id : ""//个人数据库主键
响应报文
{ "data": { "value": { "result" : "", //响应成功为 success, 失败为error "description": ""//响应结果描述 } } }
|
请求报文
{ action : "updatesuperior", flag: "", //用户标志位 superior: "" //用户汇报对象 }
|
说明:flag用来查找用户
可以为distinguishedname : "", //识别名,,@p结尾.
unique : "", //唯一标识,
employee: "", //工号,.
mobile: "", //,手机号.
id : ""//个人数据库主键
响应报文
{ "data": { "value": { "result" : "", //响应成功为 success, 失败为error "description": ""//响应结果描述 } } }
|
请求报文
{ action : "delete", flag: "", //用户标志位 }
|
说明:说明:flag用来查找用户
可以为distinguishedname : "", //识别名,,@p结尾.
unique : "", //唯一标识,
employee: "", //工号,.
mobile: "", //,手机号.
id : ""//个人数据库主键
响应报文
{ "data": { "value": { "result" : "", //响应成功为 success, 失败为error "description": ""//响应结果描述 } } }
|
服务地址 |
|
调用方式 | http |
调用方法 | post |
请求报文content-type | application/json; charset=utf-8 |
响应报文content-type | application/json; charset=utf-8 |
本服务对应组织的增删改查操作,通过传请求报文的action参数进行对应的操作:
参数 | 执行操作 |
add | 新增组织 |
update | 修改组织 |
delete | 删除组织 |
如:删除组织的请求报文可以为
{ "action": "delete", //删除组织 "flag" : "" //组织标志 }
|
请求报文
{ "action":"add", "name":"", //名称,可以重名. "unique":"",//唯一标识,不可重复,为空则使用自动填充值 "distinguishedname":"", //识别名.以@u结尾. "typelist":"", //组织类型. "description":"", //描述. "shortname":"", //组织简称。 "superior":"", //上级组织. "ordernumber":"", //排序号,升序排列,为空在最后 "controllerlist":"", //组织的管理人员. "dingdingid":"", //钉钉部门id. "dingdinghash":"", //钉钉部门哈希特征. "qiyeweixinid":"", //企业微信人员id. "zhengwudingdingid":"", //政务钉钉人员id. "zhengwudingdinghash":"", //政务钉钉人员哈希特征. "qiyeweixinhash":"", //企业微信人员哈希特征. "attributelist" : [ //组织属性 { description:"", //描述. name:"", //名称,不可重名. unique:"", //唯一标识,不可重复,为空则使用自动填充值 distinguishedname:"", //识别名,自动填充,@ua结尾. ordernumber:"", //排序号,升序排列,为空在最后 value:"", //属性值,多值. } ... ], "dutylist" : [ //组织职务 { description:"", //描述. name:"", //名称,同一组织下不可重名. unique:"", //唯一标识,不可重复,为空则使用自动填充值 distinguishedname:"", //识别名,自动填充,@ud结尾. ordernumber:"", //排序号,升序排列,为空在最后 value:"", //组织职务身份成员,多值. } ... ] } |
属性 | 上级 | 类型 | 单值/多值 | 说明 | 样例 |
action | string | single | add | ||
name | string | single | 名称,可以重名. | 九游会官网登录入口网页的技术支持 | |
unique | string | single | 唯一标识,不可重复,为空则使用自动填充值 | 1000263571 | |
distinguishedname | string | single | 识别名.如果未空系统自动填充.以@u结尾. | 九游会官网登录入口网页的技术支持@1000263571@u | |
typelist | array | multi | 组织类型. | [ "部门" ] | |
description | string | single | 描述. | ||
shortname | string | single | 组织简称。 | ||
levelname | string | single | 显示的层级名. | 安徽联通/九游会官网登录入口网页的技术支持 | |
superior | string | single | 上级组织标志位,可以为组织唯一编码unique/组织的distinguishedname/组织id | "companyleader/"公司管理层@9b45cb75-52f8-4e73-8470-4cdc78230b7d@u"/9d14f85a-27ba-4e02-b4ef-4ebfcf3f19c0 | |
ordernumber | number | single | 排序号,升序排列,为空在最后 | 20 | |
controllerlist | array | multi | 组织的管理人员的.distinguishedname 、unique 、employee或mobile | ["138000000"] | |
dingdingid | string | single | 钉钉部门id. | ||
dingdinghash | string | single | 钉钉部门哈希特征. | ||
qiyeweixinid | string | single | 企业微信人员id. | ||
zhengwudingdingid | string | single | 政务钉钉人员id. | 1000263571 | |
zhengwudingdinghash | string | single | 政务钉钉人员哈希特征. | 8ecfc82b45c5d33be7f84599b265e4fffb56108c0f8f85bde7856e01521a7d0b | |
qiyeweixinhash | string | single | 企业微信人员哈希特征. | ||
attributelist | array | single | 组织属性列表 | ||
name | attributelist | string | multi | 名称,不可重名. | 组织属性 |
description | attributelist | string | single | 描述. | |
distinguishedname | attributelist | string | single | 识别名,自动填充,@ua结尾. | 组织属性@e762a4df-44ce-418c-bb20-899558b49622@ua |
unique | attributelist | string | single | 唯一标识,不可重复,为空则使用自动填充值 | e762a4df-44ce-418c-bb20-899558b49622 |
value | attributelist | string/array | multi | 属性值,多值. | ["组织属性值"] |
ordernumber | attributelist | string | single | 排序号,升序排列,为空在最后 | 112345 |
dutylist | array | multi | 组织职务 | ||
name | dutylist | string | single | 名称,同一组织下不可重名. | 部门领导 |
description | dutylist | string | single | 描述. | |
unique | dutylist | string | single | 唯一标识,不可重复,为空则使用自动填充值 | 7a1b7021-8812-4d18-9447-6b27ce7454ed |
distinguishedname | dutylist | string | single | 识别名,自动填充,@ud结尾. | 部门领导@7a1b7021-8812-4d18-9447-6b27ce7454ed@ud |
ordernumber | dutylist | string | single | 排序号,升序排列,为空在最后 | 排序号,升序排列,为空在最后 |
value | dutylist | aray | multi | 组织职务身份成员,多值. 可以是人员的.distinguishedname 、unique 、employee或mobile | ["张三@fb3ea7de-d54f-4679-8e9a-35cb1e6b3d01@p","p0780","13800000000","fb3ea7de-d54f-4679-8e9a-35cb1e6b3d01"] |
响应报文
{ "data": { "value": { "id" : "", //如果成功,组织64位id "distinguishedname: "", //如果成功,组织识别名 "result" : "", //响应成功为 success, 失败为error "description": ""//响应结果描述 } } }
|
请求报文
{ "action":" update", "name":"", //名称,可以重名. "unique":"",//唯一标识,不可重复,为空则使用自动填充值 "distinguishedname":"", //识别名.以@u结尾. "typelist":"", //组织类型. "description":"", //描述. "shortname":"", //组织简称。 "superior":"", //上级组织. "ordernumber":"", //排序号,升序排列,为空在最后 "controllerlist":"", //组织的管理人员. "dingdingid":"", //钉钉部门id. "dingdinghash":"", //钉钉部门哈希特征. "qiyeweixinid":"", //企业微信人员id. "zhengwudingdingid":"", //政务钉钉人员id. "zhengwudingdinghash":"", //政务钉钉人员哈希特征. "qiyeweixinhash":"", //企业微信人员哈希特征. "attributelist" : [ //组织属性 { description:"", //描述. name:"", //名称,不可重名. unique:"", //唯一标识,不可重复,为空则使用自动填充值 distinguishedname:"", //识别名,自动填充,@ua结尾. ordernumber:"", //排序号,升序排列,为空在最后 attributelist:"", //属性值,多值. } ... ], "dutylist" : [ //组织职务 { description:"", //描述. name:"", //名称,同一组织下不可重名. unique:"", //唯一标识,不可重复,为空则使用自动填充值 distinguishedname:"", //识别名,自动填充,@ud结尾. ordernumber:"", //排序号,升序排列,为空在最后 identitylist:"", //组织职务身份成员,多值. } ... ] } |
属性 | 上级 | 类型 | 单值/多值 | 说明 | 样例 |
action | string | single | update | ||
name | string | single | 名称,可以重名. | 九游会官网登录入口网页的技术支持 | |
unique | string | single | 唯一标识,不可重复,为空则使用自动填充值 | 1000263571 | |
distinguishedname | string | single | 识别名.如果未空系统自动填充.以@u结尾. | 九游会官网登录入口网页的技术支持@1000263571@u | |
typelist | array | multi | 组织类型. | [ "部门" ] | |
description | string | single | 描述. | ||
shortname | string | single | 组织简称。 | ||
levelname | string | single | 显示的层级名. | 安徽联通/九游会官网登录入口网页的技术支持 | |
superior | string | single | 上级组织标志位,可以为组织唯一编码unique/组织的distinguishedname/组织id | "companyleader/"公司管理层@9b45cb75-52f8-4e73-8470-4cdc78230b7d@u"/9d14f85a-27ba-4e02-b4ef-4ebfcf3f19c0 | |
ordernumber | number | single | 排序号,升序排列,为空在最后 | 20 | |
controllerlist | array | multi | 组织的管理人员的.distinguishedname 、unique 、employee或mobile | ["138000000"] | |
dingdingid | string | single | 钉钉部门id. | ||
dingdinghash | string | single | 钉钉部门哈希特征. | ||
qiyeweixinid | string | single | 企业微信人员id. | ||
zhengwudingdingid | string | single | 政务钉钉人员id. | 1000263571 | |
zhengwudingdinghash | string | single | 政务钉钉人员哈希特征. | 8ecfc82b45c5d33be7f84599b265e4fffb56108c0f8f85bde7856e01521a7d0b | |
qiyeweixinhash | string | single | 企业微信人员哈希特征. | ||
attributelist | array | single | 组织属性列表 | ||
name | attributelist | string | multi | 名称,不可重名. | 组织属性 |
description | attributelist | string | single | 描述. | |
distinguishedname | attributelist | string | single | 识别名,自动填充,@ua结尾. | 组织属性@e762a4df-44ce-418c-bb20-899558b49622@ua |
unique | attributelist | string | single | 唯一标识,不可重复,为空则使用自动填充值 | e762a4df-44ce-418c-bb20-899558b49622 |
value | attributelist | string/array | multi | 属性值,多值. | ["组织属性值"] |
ordernumber | attributelist | string | single | 排序号,升序排列,为空在最后 | 112345 |
dutylist | array | multi | 组织职务 | ||
name | dutylist | string | single | 名称,同一组织下不可重名. | 部门领导 |
description | dutylist | string | single | 描述. | |
unique | dutylist | string | single | 唯一标识,不可重复,为空则使用自动填充值 | 7a1b7021-8812-4d18-9447-6b27ce7454ed |
distinguishedname | dutylist | string | single | 识别名,自动填充,@ud结尾. | 部门领导@7a1b7021-8812-4d18-9447-6b27ce7454ed@ud |
ordernumber | dutylist | string | single | 排序号,升序排列,为空在最后 | 排序号,升序排列,为空在最后 |
value | dutylist | aray | multi | 组织职务身份成员,多值. 可以是人员的.distinguishedname 、unique 、employee或mobile | ["张三@fb3ea7de-d54f-4679-8e9a-35cb1e6b3d01@p","p0780","13800000000","fb3ea7de-d54f-4679-8e9a-35cb1e6b3d01"] |
响应报文
{ "data": { "value": { "id" : "", //如果成功,组织64位id "distinguishedname: "", //如果成功,组织识别名 "result" : "", //响应成功为 success, 失败为error "description": ""//响应结果描述 } } }
|
请求报文
{ action : "delete", distinguishedname : "", //识别名,@p结尾. unique : "", //唯一标识 }
|
说明:distinguishedname 、unique 用来查找组织,其中一项不为空即可
响应报文
{ "data": { "value": { "result" : "", //响应成功为 success, 失败为error "description": ""//响应结果描述 } } }
|
上一篇:组织人员同步-自定义同步接口代码