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

接口说明

获取指定部门的直属成员的列表。成员信息中部门属性的值中的所有部门均是该成员的直属部门,该成员是这些部门的直属成员。获取的直属成员列表不包括子部门的成员。

媒体类型

application/json

路径参数

参数

说明

必须

id

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

必须

查询参数

参数

说明

必须

start

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

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

返回示例

{
  "code": 0,
  "msg": "Success",
  "data": {
	"values":[
      {
        "id": 2,
        "workNumber": "E3",
        "gender": "UNKNOWN",
        "mainDepartment": {
          "id": 2,
          "no": "D2",
          "name": "开发部",
          "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": "开发部",
            "type": "DEPARTMENT",
            "createTime": "2022-01-04 15:26:56"
          },
          {
            "id": 4,
            "no": "D4",
            "name": "人事部",
            "type": "DEPARTMENT",
            "createTime": "2022-01-04 15:27:08"
          }
        ],
        "createTime": "2022-01-04 15:27:47"
      }
    ],
    "isMore":false
  }
}
  • No labels