Section 1. Short title
This Act may be cited as the Subpoena Abuse Prevention Act.
(a) Consistent protections for phone and app-Based call and texting records
Section 2703(c)(2) of title 18, United States Code, is amended—
(1) by striking subparagraph (C); and
(2) by redesignating subparagraphs (D), (E), and (F) as subparagraphs (C), (D), and (E), respectively.
(b) Prohibiting the use of subpoenas for bulk collection of certain subscriber information
Section 2703(c)(2) of title 18, United States Code, as amended by subsection (a), is further amended in the matter following subparagraph (E), as so redesignated, by inserting, provided that for any administrative, grand jury, or trial subpoena, the governmental entity identifies the subscriber or customer by name, address, temporarily assigned network address, or account identifier (such as a username) before the period at the end.
(c) Prohibiting the use of subpoenas with a purpose To investigate constitutionally protected activities
Section 2703(c) of title 18, United States Code, is further amended by adding at the end the following:
(A) In general
A governmental entity may not use a subpoena to require the disclosures described in paragraph (2) if a purpose of the subpoena is to—
(i) investigate, monitor, or otherwise acquire information about activities, or any person's engagement in activities, that are exercises of free speech, press, religion, assembly, or petition, or are otherwise protected by the Constitution of the United States; or
(ii) retaliate against any person for their engagement in activities that are exercises of free speech, press, religion, assembly, or petition, or are otherwise protected by the Constitution of the United States.
(i) In general
A governmental entity using a subpoena to require the disclosures described in paragraph (2) from a service provider shall provide a certification under penalty of perjury attesting that the subpoena is being made for a legitimate and lawful purpose, and not with a purpose described in subparagraph (A)—
(I) to the service provider; and
(II) when applying for a preclusion of notice order under section 2705(b), to the court in such application.
(ii) Absence of certification
A subpoena to require the disclosures described in paragraph (2) from a service provider shall not be valid, and a preclusion of notice order under section 2705(b) for such subpoena shall not issue, unless the subpoena includes the certification described in clause (i).
(d) Required disclosures
Section 2703(c) of title 18, United States Code, is further amended by adding at the end the following:
(A) In general
Except as provided in subparagraph (B)—
(i) the service provider—
(I) may notify a customer or subscriber of the receipt of the subpoena; and
(II) may consult with an attorney in order to obtain legal advice or assistance regarding the subpoena; and
(ii) the government entity shall inform the service provider that it—
(I) is not being directed to not notify any other person of the existence of the subpoena;
(II) may notify the customer or subscriber of the receipt of the subpoena; and
(III) may consult with an attorney in order to obtain legal advice or assistance regarding the subpoena.
(B) Exception for nondisclosure orders
If a governmental entity described in subparagraph (A) obtains a preclusion of notice order under section 2705(b)—
(i) such order may limit the right of the service provider described in subparagraph (A)(i)(I); and
(ii) the governmental entity shall modify the required disclosures described in subclauses (I) and (II) of subparagraph (A)(ii) to be consistent with the terms of the order.
(e) Public reporting of use of administrative subpoenas
Section 2703(c) of title 18, United States Code, is further amended by adding at the end the following:
(6) Reporting of Federal use of administrative subpoenas
Each Federal governmental entity that uses an administrative subpoena to require the disclosure of information under this subsection shall annually publicly publish a report containing, for the 1-year period preceding the date of the report—
(A) the number of administrative subpoenas issued by the governmental entity, disaggregated by the statutory authority under which the administrative subpoenas were issued; and
(B) the number of accounts for which the governmental entity received information through an administrative subpoena, disaggregated by the statutory authority under which the administrative subpoenas were issued.