I would like to know whether identity and personality are the same thing, as they both answer the question of who you are. Nevertheless in a cognitive approach, identity is considered a part of personality, concretely it's considered as a brain structure inside of the memory.
I think the relation is more or less subjective.
Identity is something that you give yourself. It has to do with what you stand for, morals, values, etc.
It is who your are physically and legally, but that's just a basic "you already know that" statement.
Personality is the way in which you portray or "live in" your identity.
For example, you can identify parts of someone's personality: humorous, attractive, intelligent, funny.
Both adapt and change over time, but your identity changes less often, I believe. Together, they are what makes a whole person.
It's really difficult to give a concrete answer because a lot of this can be subjective, debatable and complex.
It's also important to remember that while in some cases your personality and identity may be the same, in the end, they serve different "roles." If someone says "you're unique", it's true. Both your identity and personality are what makes you unique. They help each other in that way.
Let's take a look at this from a different angle: Let's say that we know this guy named Tom is a murderer. That is his identity. His personality, however, may not portray that and can come off as fun or charming. Personality is how someone behaves. They both go really well together but that doesn't mean that they are always similar. In most cases, you will find that they are similar, though.
In my idea i think identity is a kind of inherit.something that world gives you and you can not change it. for example you can not change your date of birth or where you born. i'm Iranian and being Iranian is one part of my identity. my birth day is another part of my identity.my parents gave me a name so it's another part of my identity. but personality is something that makes me unique. for example there is lots of people who born and live in same country and born same date i was born also lots of them has same name but non of them has my rules,demands,priorities,experiences,education and ... so non of them think and act like me.personalty is all those covers and masks i use on myself in community.this is my personalty. Maybe all i said was false. i just wanted to share my opinion.
Some of the information contained in this post requires additional references. Please edit to add citations to reliable sources that support the assertions made here. Unsourced material may be disputed or deleted.