GEThttps://api.account.tencentid.com/openapi/v3/contacts/users/{union_id}名称 | 类型 | 必填 | 描述 |
Authorization | string | 是 | 值格式: Bearer {{access_token}} 支持鉴权类型: |
Content-Type | string | 是 | 固定值: application/json; charset=utf-8 |
名称 | 类型 | 必填 | 描述 |
union_id | string | 是 | OneID 企业用户 id 示例值:13579************24 |
名称 | 类型 | 必填 | 描述 |
ignore_status | bool | 否 | 是否忽略状态,默认不忽略。 True:不论用户处于什么状态,均会返回False:只返回处于正常状态的用户数据示例值:False |
参数名称 | 类型 | 描述 |
union_id | string | 用户 union_id |
name | string | 姓名 |
username | string | 登录用户名 |
alias_id | string | 用户别名 ID |
account_id | string | 所属企业账号 ID |
account_name | string | 所属企业名称 |
status | string | 用户状态。取值如 Enabled、Initialized |
join_time | string | 加入时间,格式 2025-09-17 |
avatar | string | 头像地址 |
email | string | 邮箱,已脱敏 |
mobile | string | 手机号,已脱敏(含区号 +86) |
employee_number | string | 工号 |
position | string | 职位 |
departments | array<object> | 所属部门列表 |
└ department_id | string | 部门 ID |
└ department_name | string | 部门名称 |
└ department_parent_id | string | 父部门 ID |
└ is_main_department | bool | 是否主部门 |
GET https://api.account.tencentid.com/openapi/v3/contacts/users/13579************24Authorization: Bearer {{access_token}}
{"code": 0,"msg": "ok","trace_id": "f56cab680d1f890e1263e1bdf97aebeb","data": {"user": {"union_id": "13579*************24","name": "张三","join_time": "2025-09-17","status": "Enabled","account_id": "13580*************25","account_name": "张三集团","alias_id": "on_b893c*************************45","email": "********@google.com","username": "Peter ***","departments": [{"department_id": "13830************89","department_name": "eid","department_parent_id": "13580*************25","is_main_department": true}],"mobile": "+86 138******90"}}}
错误码 | 描述 |
200001 | 用户不存在 |
10002 | 资源不存在 |
10030 | 参数不正确 |
文档反馈