updated getTeamUsersByTeamId functionality