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

接口说明

获取指定部门的所有成员的列表。获取的所有成员列表中包含该部门的任意子部门的成员。

媒体类型

application/json

路径参数

参数

说明

必须

id

部门的ID或者部门NO.,部门唯一标识

必须

查询参数

参数

说明

必须

start

分页参数,从第几条开始。默认为0。

非必须
limit分页参数,返回几条。默认为-1,表示不限制。非必须
showDisabled是否包括非活跃成员。默认为false,表示不包括。非必须

返回示例

{
  "code": 0,
  "msg": "Success",
  "data": {
	"values":[
      {
        "id": 1,
        "workNumber": "E2",
        "gender": "UNKNOWN",
        "mainDepartment": {
          "id": 3,
          "no": "D3",
          "name": "销售部",
          "type": "DEPARTMENT",
          "createTime": "2022-01-04 15:27:02"
        },
        "jiraUser": {
          "userKey": "JIRAUSER10100",
          "avatar": "https://www.gravatar.com/avatar/5707c8ca87f52a927bdc8d2a40b99122?d=mm&s=16",
          "userName": "amy",
          "displayName": "amy",
          "emailAddress": "amy@shdsd.com",
          "isActive": true
        },
        "departments": [
          {
            "id": 3,
            "no": "D3",
            "name": "销售部",
            "type": "DEPARTMENT",
            "createTime": "2022-01-04 15:27:02"
          },
          {
            "id": 4,
            "no": "D4",
            "name": "人事部",
            "type": "DEPARTMENT",
            "createTime": "2022-01-04 15:27:08"
          }
        ],
        "createTime": "2022-01-04 15:22:14"
      }
    ],
	"isMore":false
  }
}
  • No labels