Get the list of department members
GEThttps://your-domain/openapi/v2/account/departments/:departmentID/members
Get the list of department members (team admin permissions required)
History
Version | Changes |
---|---|
v6.0.44 | Added in: v6.0.44 |
Request
Path Parameters
Department ID
Query Parameters
The team ID
Possible values: <= 500
Default value: 500
The default value for the number of results to return in this request is 500. Values exceeding 500 or ≤0 will be reset to 500
The starting location of this request
Responses
- 200
- 401
- 403
- 404
- 500
Request was successful
- application/json
- Schema
- Example (from schema)
Schema
data
object
{
"data": {
"list": [
{
"id": "2oF4mAeA",
"email": "blue@ones.cn",
"name": "blue",
"phone": "+860000000000",
"avatar": "/api/project/file/avatar/Fu-Dl5d3F0EUZOe1UUxU1EEsL2Dv",
"organization": "ONES",
"staffID": "000001",
"position": "Software Engineer"
}
],
"pageInfo": {
"count": 0,
"endCursor": "string",
"hasNextPage": true,
"startCursor": "string",
"totalCount": 0
}
}
}
Returned if the authentication credentials are incorrect or missing.
- application/json
- Schema
- Example (from schema)
Schema
The result of this request.
The error code of this request.
Error message for this request.
{
"result": "FAIL",
"errorCode": "Unauthorized",
"errorMsg": "Access token is invalid"
}
Returns if the scope check fails.
- application/json
- Schema
- Example (from schema)
Schema
The result of this request.
The error code of this request.
Error message for this request.
{
"result": "FAIL",
"errorCode": "Forbidden",
"errorMsg": "Scope is invalid"
}
Returned if the resource object was not found.
- application/json
- Schema
- Example (from schema)
Schema
The result of this request.
The error code of this request.
Error message for this request.
{
"result": "FAIL",
"errorCode": "NotFound",
"errorMsg": "Not Found"
}
Internal Server Error.
- application/json
- Schema
- Example (from schema)
Schema
The result of this request.
The error code of this request.
Error message for this request.
{
"result": "FAIL",
"errorCode": "Internal Server Error",
"errorMsg": "Internal Server Error"
}
- curl
- python
- go
- nodejs
- ruby
- csharp
- php
- java
- powershell
- CURL
curl -L 'https://your-domain/openapi/v2/account/departments/:departmentID/members' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <TOKEN>'