订阅该事件后,当员工信息(如基础属性、账号状态、所属部门、所属角色)被修改时触发该事件。
参数 | 类型 | 描述 |
---|---|---|
schema | string | 事件消息格式版本。当前固定为 1.0。 |
header | object | 消息头,包含事件的基础信息。 |
└ event_id | string | 事件 ID,每个消息的事件 ID 唯一。 |
└ token | string | 验证 token,取值与飞连事件订阅的加密策略内设置的 Verification Token 一致,通过验证该值可以确保消息来自飞连。 |
└ create_time | string | 事件发送时间,Unix 时间戳(单位毫秒)。 |
└ event_type | string | 事件类型。当前事件的类型为 user.v1.update。 |
└ app_id | string | 事件回调配置 ID。 |
data | object | 事件数据。 |
└ events | object[] | 事件详细数据列表,支持数组格式。 |
└└ object | object | 变更后的员工信息。 |
└└└ open_id | string | 用户 ID。 |
└└└ full_name | string | 用户名。 |
└└└ user_id | string | 自定义用户 ID。 |
└└└ mobile | string | 手机号。 |
string | 邮箱。 | |
└└└ status | int | 用户状态。可能值:
|
└└└ avatar | string | 头像。仅在有值时展示该参数。 |
└└└ create_date | string | 账号生效日期,格式示例:2025-01-01。仅在有值时展示该参数。 |
└└└ expire_date | string | 离职日期,格式示例:2025-01-01。仅在有值时展示该参数。 |
└└└ hired_date | string | 入职日期,格式示例:2025-01-01。仅在有值时展示该参数。 |
└└└ department_id | string | 主部门 ID。仅在有值时展示该参数。 |
└└└ department_ids | string[] | 部门 ID 列表。仅在有值时展示该参数。 |
└└└ role_ids | string[] | 角色 ID 列表。仅在有值时展示该参数。 |
└└ old_object | object | 变更前的员工信息。 |
└└└ open_id | string | 用户 ID。 |
└└└ full_name | string | 用户名。 |
└└└ user_id | string | 自定义用户 ID。 |
└└└ mobile | string | 手机号。 |
string | 邮箱。 | |
└└└ status | int | 用户状态。可能值:
|
└└└ avatar | string | 头像。仅在有值时展示该参数。 |
└└└ create_date | string | 账号生效日期,格式示例:2025-01-01。仅在有值时展示该参数。 |
└└└ expire_date | string | 离职日期,格式示例:2025-01-01。仅在有值时展示该参数。 |
└└└ hired_date | string | 入职日期,格式示例:2025-01-01。仅在有值时展示该参数。 |
└└└ department_id | string | 主部门 ID。仅在有值时展示该参数。 |
└└└ department_ids | string[] | 部门 ID 列表。仅在有值时展示该参数。 |
└└└ role_ids | string[] | 角色 ID 列表。仅在有值时展示该参数。 |
└└ update_fields | string[] | 发生信息变更的参数列表。 |
{ "schema": "1.0", "header": { "event_id": "e09288e2-a1b3-4b38-84a8-3c673725xxxx", "token": "token-test", "create_time": "1740385174957", "event_type": "user.v1.update", "app_id": "897957767eda448e9e3c53c6a51dxxxx" }, "data": { "events": [ { "object": { "open_id": "ou_6M95Q3J3xxxx", "full_name": "用户名称1", "user_id": "ou_6M95Q3J3xxxx", "mobile": "12345678910", "email": "example@example.com", "status": 4, "avatar": "https://xxxxxxxxxx", "create_date": "2025-01-01", "expire_date": "2025-01-01", "department_id": "od_ryk123xxxx", "department_ids": [ "od_ryk123xxxx" ] }, "old_object": { "open_id": "ou_6M95Q3J3xxxx", "full_name": "用户名称2", "user_id": "ou_6M95Q3J3xxxx", "mobile": "12345678910", "email": "example@example.com", "status": 4, "avatar": "https://xxxxxxxxxx", "create_date": "2025-01-01", "expire_date": "2025-01-01", "department_id": "od_ryk123xxxx", "department_ids": [ "od_ryk123xxxx" ] }, "updated_fields": [ "full_name" ] } ] } }