DepartmentService::getTeamUsersPaginated() internally.goteam_id (for third-party API filtering), assignment_type, and whether they are the team lead.curl --location 'https://api-dev.commandroom.ai/api/api/departments/teams/42/users?page=1&per_page=5' \
--header 'Authorization: Bearer {{token}}' \
--header 'X-Tenant-UUID: '{
"success": true,
"data": [
{
"id": 1,
"type": "user",
"name": "Sample Name",
"email": "user@example.com",
"original_id": 1,
"goteam_id": 1,
"parent_id": 1,
"assignment_type": "team",
"is_team_lead": true,
"children": [
{}
]
}
],
"pagination": {
"current_page": 1,
"per_page": 1,
"total": 10,
"last_page": 1,
"has_more": true
}
}