Egomania is a psychiatric term used to describe excessive preoccupation with one's ego, identity or self and applies the same preoccupation to anyone who follows one’s own ungoverned impulses, is possessed by delusions of personal greatness & grandeur and feels a lack of appreciation.
The term egomania refers to a preoccupation with one's self, identity, or ego, which extends to individuals whose actions are guided by unrestrained impulses, harbor delusions of personal superiority, and experience a lack of acknowledgment from others.