Honestly, like most educational strategies, what you do depends on the students, curriculum, the teacher, the school, and the overarching goals of the classroom. This article focuses on how to help students decide for themselves whether they should be in a group or not, and gives resources that may be helpful.
Admittedly, I am biased towards allowing group work because it resembles the play that is important to childhood development.