Get users in a department
Departments
Get users in a department
Return populated users assigned to the department, along with the department metadata. Used by the department detail view to render the member roster.
GET
Get users in a department
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path Parameters
Response
Department users returned
Example:
{
"_id": "65c1a0b0c0d0e0f0a0b0c0d1",
"name": "Sales",
"description": "Inbound + outbound sales reps",
"organizationId": "65a0e0e0e0e0e0e0e0e0e0e0",
"managerIds": [
{
"_id": "65b1f0a2c3d4e5f6a7b8c9e0",
"fullName": "Brenda Lee",
"email": "brenda@example.com",
"accessRole": "ADMIN"
}
],
"userIds": [
{
"_id": "65b1f0a2c3d4e5f6a7b8c9d0",
"fullName": "Alice Rivera",
"email": "alice@example.com",
"accessRole": "AGENT"
}
],
"createdBy": {
"_id": "65b1f0a2c3d4e5f6a7b8c9e0",
"fullName": "Brenda Lee",
"email": "brenda@example.com"
},
"updatedBy": {
"_id": "65b1f0a2c3d4e5f6a7b8c9e0",
"fullName": "Brenda Lee",
"email": "brenda@example.com"
},
"createdAt": "2026-01-12T09:00:00.000Z",
"updatedAt": "2026-04-04T12:30:00.000Z"
}