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.
Authorization
bearerAuth AuthorizationBearer <token>
In: header
Path Parameters
id*string
Response Body
application/json
application/json
application/json
application/json
application/json
curl -X GET "https://example.com/api/departments/string/users"{ "users": [ { "_id": "65b1f0a2c3d4e5f6a7b8c9d0", "fullName": "Alice Rivera", "email": "alice@example.com", "accessRole": "AGENT" } ], "department": { "_id": "65c1a0b0c0d0e0f0a0b0c0d1", "name": "Sales", "organizationId": "65a0e0e0e0e0e0e0e0e0e0e0" }}