Having a Permanent Account Number (PAN) is mandatory for all types of demat account holders, such as minors, trusts, foreign corporate bodies, banks, and corporations. However, FIIs (Foreign Institutional Investors) and NRIs (Non-Resident Indians) are exempt from this requirement.