- 开放平台-组织人事接口
- 开放平台认证步骤
- 同步人员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/syncHrmShare
1.
2.
请求参数
Body 参数application/json
data
array [object {6}]
内容
sourceId
string
业务数据id
当共享类型为:
normal2external 外部联系人卡片-共享,则提供外部联系人id;
ex2normal 外部联系人呢卡片-权限设置(共享),则提供下外部联系人id;
extVirtOpt 外部联系人-维度管理-维度操作者(共享),则提供维度id;
targetId
string
共享范围id
比如: 共享范围类型=人员 则代表人员id,需要提供人员id;
特别注意:
共享范围类型=所有人,则只能给0
targetType
string
共享范围类型
1 人员
2 部门
5 分部
3 部门/含下级
6 分部/含下级
2002 部门/含兼职
501 分部/含兼职
3002 部门/含下级/含兼职
502 分部/含下级/含兼职
10 角色
1411 群组
1311 岗位
13111 岗位/含兼职
11 所有人
seclevel_from
string
共享范围-安全级别开始
seclevel_to
string
共享范围-安全级别结束
deleteType
string
是否删除
1 表示删除,其他值则忽略这个变量;
shareType
string
业务类型
normal2external 外部联系人卡片-共享;
ex2normal 外部联系人呢卡片-权限设置(共享);
extVirtOpt 外部联系人-维度管理-维度操作者(共享);
示例
{
"data": [
{
"sourceId": "969434849612546059",
"targetId": "975081421821870080",
"targetType": "2",
"seclevel_from": 1,
"seclevel_to": 100,
"deleteType": "0"
}
],
"shareType": "normal2external"
}
示例代码
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/syncHrmShare' \
--header 'Content-Type: application/json' \
--data-raw '{
"data": [
{
"sourceId": "969434849612546059",
"targetId": "975081421821870080",
"targetType": "2",
"seclevel_from": 1,
"seclevel_to": 100,
"deleteType": "0"
}
],
"shareType": "normal2external"
}'
返回响应
🟢200成功
application/json
Body
object {0}
示例
{"message":{"errcode":"0","errmsg":"success"}}
🟢200失败
修改于 2024-11-21 11:00:42