As with so many things in life, there's a balance to this; society is formed of an aggregate of individuals.
Trying to claim that someone
must subordinate themselves to 'the greater good' is not only devaluing a person, the 'greater good' when it is a matter of
compulsion in human society always and without exception ends up being 'whatever the dictator wants.'
If each individual is not recognized as having inherent dignity and worth, then how can the combined aggregate of individuals have inherent dignity and worth?
On the other end, 'hey man, don't leave your garbage all over the park, everybody uses this place' isn't asking or trying to compel someone to degrade themselves on behalf of society. It's asking them to recognize that their carelessness can cause problems for others.
If you want to be treated as someone with respect and dignity, then you must also treat others with respect and dignity.
Where this usually becomes
slightly murky, is when you have group projects that can only really work if people act in an effective cooperative manner. If the goal is to be accomplished, then people
must work together, setting aside their own personal desires temporarily for the good of the project. Of course, in a healthy day-to-day normalish life, this is basically 'I'm at work ~8 hours a day and I contribute my labor to keeping the business going.' Then once you are
off work, your time is your own, and you can do with it as you please.
It isn't actually that complicated; you give up something of yourself, (time and labor), and are given recompense in return (money usually, hopefully some respect), and in a free society, you can
choose whether or not to do so. Radical ideological purists can have trouble with this, because they're so fixated on a single concept that they don't see how it has to be balanced with other concepts that have worth.
At the bottom line, a man of
wisdom and discernment, can partake in a community, contribute to it freely, and have the self-respect to leave that community if it tries to dominate him. Going out either extreme into total community dependence or total rejection of human relationships is destructive.