When does the good of the group override the advantage of the individual?

When does the good of the group override the advantage of the individual?