/
4.3.1.2 Get the flat list of all members of a department

4.3.1.2 Get the flat list of all members of a department

GET /rest/orgwise/3/department/{id}/allMembers

DESCRIPTION

Get the flat list of all members of a department. The list includes members of any sub departments.

MEDIA TYPE

application/json

PATH PARAM

Param

Description

Required

Param

Description

Required

id

The ID or No. of a department.

Required

QUERY PARAM

Param

Description

Required

Param

Description

Required

start

Paging parameter, indicating the starting point. The default is 0.

Optional

limit

Paging parameter, indicating searching for how many items. The default is -1, which means there is no limit.

Optional

showDisabled

Whether inactive members are included. The default value is false, which means it is not included.

Optional

RESPONSE

{ "code": 0, "msg": "Success", "data": { "values": [ { "id": 2, "workNumber": "E3", "gender": "UNKNOWN", "mainDepartment": { "id": 2, "no": "D2", "name": "Dev", "type": "DEPARTMENT", "createTime": "2022-01-04 15:26:56" }, "jiraUser": { "userKey": "admin", "avatar": "https://www.gravatar.com/avatar/64e1b8d34f425d19e1ee2ea7236d3028?d=mm&s=16", "userName": "admin", "displayName": "admin", "emailAddress": "admin@admin.com", "isActive": true }, "departments": [ { "id": 2, "no": "D2", "name": "Dev", "type": "DEPARTMENT", "createTime": "2022-01-04 15:26:56" }, { "id": 4, "no": "D4", "name": "HR", "type": "DEPARTMENT", "createTime": "2022-01-04 15:27:08" } ], "createTime": "2022-01-04 15:27:47" } ], "isMore":false } }