Altermagnetism, as an unconventional antiferromagnetism, exhibits collinear-compensated magnetic order in real space and spin-splitting band structure in reciprocal space. In this work, we propose a general approach to generating multicomponent structures with two-dimensional (2D) altermagnetism, based on symmetry analysis. Specifically, by analyzing the space group of the crystal structures and their subgroups, we systematically categorize equivalent atomic positions and arrange them into orbits based on symmetry operations. Chemical elements are then allowed to occupy all atomic positions on these orbits, generating candidate structures with specific symmetries. We present a general technique for generating collinear-compensated magnetic order, characterized by the symmetrical interconnection between opposite-spin sublattices, and employ first-principles calculations to determine magnetic ground states of multicomponent materials. This approach integrates symmetry analysis with the screening of altermagnetic configurations to evaluate the likelihood of candidates possessing altermagnetism. To verify the methodology, we provide examples of previously unreported 2D altermagnets, such as , and , and evaluate their dynamical stability by calculating the phonon spectrum. The results demonstrate the feasibility of our approach in generating stable multicomponent structures with two-dimensional altermagnetism. Our research has significantly enriched the candidate materials for 2D altermagnets, and provides a reference for experimental synthesis.