§ 7216. Disclosure or use of information by preparers of returns

(a) General rule
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,
shall be guilty of a misdemeanor, and, upon conviction thereof, shall be fined not more than $1,000, or imprisoned not more than 1 year, or both, together with the costs of prosecution.
(b) Exceptions
(1) Disclosure
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.