Any person who is engaged in the business of preparing, or providing services in connection with the preparation of, returns of the tax imposed by chapter 1, or any person who for compensation prepares any such return for any other person, and who knowingly or recklessly—
(1) discloses any information furnished to him for, or in connection with, the preparation of any such return, or
(2) uses any such information for any purpose other than to prepare, or assist in preparing, any such return,
Subsection (a) shall not apply to a disclosure of information if such disclosure is made—
Subsection (a) shall not apply to a disclosure of information if such disclosure is made—
(A) pursuant to any other provision of this title, or
(B) pursuant to an order of a court.
(2) Use Subsection (a) shall not apply to the use of information in the preparation of, or in connection with the preparation of, State and local tax returns and declarations of estimated tax of the person to whom the information relates.
(3) Regulations Subsection (a) shall not apply to a disclosure or use of information which is permitted by regulations prescribed by the Secretary under this section. Such regulations shall permit (subject to such conditions as such regulations shall provide) the disclosure or use of information for quality or peer reviews.
(Added Pub. L. 92–178, title III, § 316(a), Dec. 10, 1971, 85 Stat. 529; amended Pub. L. 94–455, title XIX, § 1906(b)(13)(A), Oct. 4, 1976, 90 Stat. 1834; Pub. L. 98–369, div. A, title IV, § 412(b)(10), July 18, 1984, 98 Stat. 792; Pub. L. 100–647, title VI, § 6242(b), Nov. 10, 1988, 102 Stat. 3749; Pub. L. 101–239, title VII, § 7739(a), Dec. 19, 1989, 103 Stat. 2404; Pub. L. 116–25, title II, § 2009(b), July 1, 2019, 133 Stat. 1007.)