Admin-only endpoint to retrieve a list of users. - If both start and end are 0, all users are returned. - Otherwise, returns users between the given start and end indexes (zero-based).
| Name | Type | Required | Description |
|---|---|---|---|
| Authorization | string | Yes | Bearer token |
| Parameter | Type | Required | Description |
|---|---|---|---|
| start | integer | Yes | Starting index (0 for beginning) |
| end | integer | Yes | Ending index (0 to return all users) |
| Parameter | Type | Required | Description |
|---|---|---|---|
| departmentFilter | string | No | Department ID to filter users by |
null to return all users that are not part of any department"64ef3c29f9a1c27e1b2c3a4d"Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Starting index (0 for beginning)
x >= 0Ending index (0 to return all users)
x >= 0Department ID to filter users by. - Must be a valid MongoDB ObjectId of a department. - Can be null to return all users that is not a part of any department.