Act Governing Relations between the People of the Taiwan Area and the Mainland Area Article 21

Except otherwise provided for in any other law, any of the people of the Mainland Area permitted to enter into the Taiwan Area may not register itself as candidate for any public office, serve in the government, educational institutions or state enterprises, or organize any political party unless it has had a household registration in the Taiwan Area for at least ten years; unless it has had a household registration in the Taiwan Area for at least twenty years, it may not serve in the intelligence agencies or institutions, or serve in the national defense agencies or institutions as any of following personnel:1. Recruited military officers, sergeants and soldiers.2. Drafted military officers and sergeants.3. Civilian, educational and military contracted personnel.Any of the people of the Mainland Area who is permitted to enter into the Taiwan Area and has a household registrations in the Taiwan Area may serve as faculty member of any university, researcher of any academic or research institution, or specialist of any social education institution according to relevant laws and regulations without being subject to the limitation to have a household registration in the Taiwan Area for at least ten years as referred to in the preceding paragraph.Any person referred to in the preceding paragraph shall not assume any responsibility or perform any work involving national security or confidential science-tech research.
中文原文 臺灣地區與大陸地區人民關係條例第21條
大陸地區人民經許可進入臺灣地區者,除法律另有規定外,非在臺灣地區設有戶籍滿十年,不得登記為公職候選人、擔任公教或公營事業機關(構)人員及組織政黨;非在臺灣地區設有戶籍滿二十年,不得擔任情報機關(構)人員,或國防機關(構)之下列人員:
一、志願役軍官、士官及士兵。
二、義務役軍官及士官。
三、文職、教職及國軍聘雇人員。
大陸地區人民經許可進入臺灣地區設有戶籍者,得依法令規定擔任大學教職、學術研究機構研究人員或社會教育機構專業人員,不受前項在臺灣地區設有戶籍滿十年之限制。
前項人員,不得擔任涉及國家安全或機密科技研究之職務。

English translation for reference only; the Chinese text prevails. Not legal advice.