; or (ii) under section 208(b)(3) as the spouse or child of an alien granted asylum under section 208(b)(1); and (B) is admissible under section 212 (except as otherwise provided in subsections (b) and (c)). (2) Adjustment of status (A) In general The Secretary of Homeland Security or the Attorney General, in the discretion of the Secretary or the Attorney General, and under such regulations as the Secretary or the Attorney General may prescribe, may adjust, to the status of an alien lawfully admitted to the United States for permanent residence, the status of any alien who, while in the United States— (i) is granted— (I) asylum under section 208(b) (as a principal alien or as the spouse or child of an alien granted asylum); or (II) refugee status under section 207 as the spouse or child of a refugee; (ii) applies for such adjustment of status at any time after being granted asylum or refugee status; (iii) is not firmly resettled in any foreign country; and (iv) is admissible (except as otherwise provided under subsections (b) and (c)) as an immigrant under this Act at the time of examination for adjustment of such alien. (B) Applicability This paragraph shall apply to any alien lawfully admitted for permanent residence under section 207 or 208 before the date of the enactment of the Refugee Protection Act of 2019 . (3) Record Upon approval of an application under this subsection, the Secretary of Homeland Security or the Attorney General shall establish a record of the alien’s admission for lawful permanent residence as of the date such alien was granted asylum or refugee status. (b) Inapplicability of certain inadmissibility grounds to refugees, aliens granted asylum, and such aliens seeking adjustment of status to lawful permanent resident Paragraphs (4), (5), and (7)(A) of section 212(a) shall not apply to— (1) any refugee under section 207; (2) any alien granted asylum under section 208