Your question is based on Yog Sutras of Patanjalii - Sutra No. 1.17. Below is the sanskrit sutra.
वितार्कविचारानन्दस्मितारुपनुगमात्सम्पज्ञात : || 1.17||
Samprajnata , the Samadhi of Wisdom , occurs through the accompaniment
of the appearance (RP ,BB) of gross thought ( Vitarka) ,Subtle thought
( Vichara) , ecstasy (ananda) and I-am- ness (asmita).
Here Patanjali is describing various types of Samadhi's or meditation a Yogi should gradually practice in order to purify his mind for achieving Moksha or self-Realization or enlightenment. The soul purpose of all these all types of samadhis is to gradually develop Dispassion in his mind and to isolate him from his material as well as subtle world and to lead him towards his final goal. This is very difficult and laborious task.
For answring purpose i am taking help of commentary provided in Yoga-Sutras of patanjali with the exposition of Vyasa - Translation and commentary by- Pandit Usarbudh Arya- Vol.1 .
Do all samadhis are required or based on personality some are optional?
From commentary we come to know that all these steps are sequential and gradual , although not dependent on each other but are necessary in achieving final goal. And why are all these levels or types are necessary in achieving final liberation the answer can be found in below passage ,where it is said that in Practicing samadhi or meditation a yogi experiences some faults in each level of realization and thus he develops dispassion towards each of these types or levels until the final realization occurs.
It is also said that just mastering each of the stage or type is not important but before going to next level or type a full dispassion towards last type or level should be achieved .The purpose of each type is to lead a yogi sequentially to get free from all material as well as emotional bondages step by step. And in the process he overcomes the previous level and develops dispassion towards previous level and the outcome of that level .i.e. siddhis etc.
What then is the purpose of such realization at these various levels
in Samprajnata Samadhi? They are to fulfil the purpose described in YS
1.15 ,16 : to develop dispassion towards each level of the material evolutes. At each level one feels that the next subtler level is
purer. But upon examination by realization it is found that the purity
is only relative , at best derived from sattva ,which is an attribute
of matter. Each level is successively found to be attended by some
faults and blemishes (NB) that have been describe earlier. Thus a
Vairagya towards each successive state develops . Simply perfecting
the level of realization is not conductive to progress towards
isolation and liberation . It is only when full dispassion develops
towards that very experience and realization that the next step can be
taken towards a yet subtler object of concentration. - [Page -222 - Second paragraph.]
So we can see that achieving Kaivalya or Moksha or enlightenment is a gradual or sequential process. And during all types of samadhi a Yogi is sequetially gets freed from various assumed bondages.And in the last samadhi stage i.e. in a cognitive ( asamprajnata) samadhi , final enlightenment happens.
As the process of samadhi advances , the assumption of false
identifications with each shealth are dropped and gradual freedom from
morality ,action, mentation,ignorance ,pain and bondage is achieved.
One is freed from
One can achieve final state of Samadhi Or Moksha through grace of God Directly.
A Yogi can bypass all the stages of Samadhis and can directly reach to final stage by the grace of the God through path of Devotion i.e. Bhakti etc. avoiding all the labour. In such a case he do not experience the other types of samadhis and their outcome i.e. siddhis etc. He directly gets enlightenlemt from God.
However it is suggested that these stages or types are there and one should go through them in order to achieve the grace of the god , they make a yogi's mind pure step by step and makes him fit for grace.
The order in which the four stages are practised and mastered are
important (BG NB).It is clearly stated however (BG) that , if a yogi
makes spontaneous ascent to a higher ground by the grace of the God ,
he then need not climb methodically and laboriously over the lower
steps (BG) .Grace , then is a shortcut which bypass the method. It
must be remembered however ,that when one climbs to a higher plateau
through force such Grace, the lower siddhis attendant upon the
practice of earlier steps do not occur .It is only for some reasons
one need those siddhis - even they are relevant to one's spiritual
attainment ,station and progress.
For the purpose here it is assumed that a method is generally
requisite for mental purification and mastery in order that one may
become deserving vessel for Grace. -[ Page - 243 -Second Paragraph.]
So in conclusion all these types of Samadhis are gradual and sequential. They are designed so that a yogi step by step can gets isolated from all his bondages of material as well as subtle world. leading him towards final stage. Although he can directly achieve enlightenment through grace of God , these types helps him to become fit for the Grace , so all these types are important even one wants the Moksha through Grace via Bhakti etc.
So it is assumed that a Yogi should practice all these types in order to gradually purify himself and becoming entirely free from this material as well as emotional world . Even in case of attempt of direct enlightenment these types helps and makes him fit for Grace of God.