/
4.2.2.6 Get the Member Information of a Jira User

4.2.2.6 Get the Member Information of a Jira User

GET /rest/orgwise/2/member/{userNameOrKey}?extendImage={extendImage}&getAllParents={getAllParents}

DESCRIPTION

Get the member information by the username or key of a Jira user.

MEDIA TYPE

  • application/json

PATH PARAM

Param

Description

Required

Param

Description

Required

userNameOrKey

The name or key of a Jira user.

Required

QUERY PARAMS

Param

Description

Required

Param

Description

Required

extendImage

Make result data includes fields of type “Image”. Boolean. Default is false. When extendImage is true, the returned content contains image.

Optional

getAllParents

Whether to get all parent departments, not returned by default. When getAllParents is true, return all parent departments of the member's department.

Optional

RESPONSE

{ "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": "Finance & IT", "type": "DEPARTMENT", "createTime": "2022-06-07 11:21:42", "parent": 3 }, "departments": [ { "id": 1, "no": "D1", "name": "Finance & IT", "type": "COMPANY", "createTime": "2022-06-07 10:45:29" }, { "id": 2, "no": "D2", "name": "IT", "type": "DEPARTMENT", "createTime": "2022-06-07 11:21:01", "parent": 1 } ], "memberProperties": [], "createTime": "2022-06-07 10:45:11.925" } }