Soviet Union had this job guarantee. It didn’t work well. Motivation of people forced to be somewhere all day was very low.
I don't know much about the USSR, but I don't think they set everyone's salaries the same or distributed money equally, or any other nonsense like that.