According to freud, the part of the personality would be superego
According to freud, superego refers to the part of our mindset that acted as self-critical conscience (determining which good and which evil) which help us regulate ourself as an individual.
The superego would be heavily influenced by norms, individual identity, and our personal experience.