The movie The Congress explores the ideas of control through society-scale simulation and the loss of one's real identity when immersed in that setting, much like what you suggest. It's a visual trip, thoroughly thought provoking, and I highly recommend it