Function to get all members of a team.