GET /rest/orgwise/3/member/{userNameOrKey}?extendImage={extendImage}&getAllParents={getAllParents}
接口说明
根据用户名或用户Key获取对应的组织机构成员信息。
媒体类型
- application/json
查询参数
参数 | 说明 | 必须 |
---|---|---|
extendImage | 自定义字段类型为图片的字段信息是否返回,默认不返回。当extendImage为true时,返回内容带有图片数据。 | 非必须 |
getAllParents | 是否获取所有父级部门,默认不返回。当getAllParents为true时,返回成员所在部门的所有上级部门 | 非必须 |
路径参数
参数 | 说明 | 必须 |
---|---|---|
userNameOrKey | 用户名或用户key,用户唯一标识 | 必须 |
返回示例
{ "code": 0, "msg": "Success", "data": { "id": 4, "workNumber": "E5", "gender": "UNKNOWN", "jiraUser": { "userKey": "admin", "avatar": "https://www.gravatar.com/avatar/64e1b8d34f425d19e1ee2ea7236d3028?d=mm&s=16", "userName": "admin", "displayName": "admin", "emailAddress": "admin@admin.com", "isActive": true }, "mainDepartment": { "id": 6, "no": "D6", "name": "开发四级部门并列", "type": "DEPARTMENT", "createTime": "2022-06-07 11:21:42", "parent": 3 }, "departments": [ { "id": 1, "no": "D1", "name": "DSD公司", "type": "COMPANY", "createTime": "2022-06-07 10:45:29" }, { "id": 2, "no": "D2", "name": "开发部", "type": "DEPARTMENT", "createTime": "2022-06-07 11:21:01", "parent": 1 } ], "memberProperties": [], "createTime": "2022-06-07 10:45:11.925" } } }