Quick search by citation:

2 U.S. Code § 1966a - Protection of former Speakers of the House of Representatives

Notwithstanding any other provision of law (except section 1341 of title 31, United States Code), hereafter, the United States Capitol Police shall perform a threat assessment for former Speakers of the House of Representatives, and if warranted, any such former Speaker shall receive a United States Capitol Police protective detail for a period of not more than one year beginning on the date they leave such office, except that such former Speaker shall have the option to decline such protective detail at any time: Provided, That at the conclusion of the one year period, the United States Capitol Police shall perform a threat assessment to determine whether extension of the protective detail is warranted: Provided further, That, the protective detail may be extended beyond the initial one year period, with the concurrence of the relevant former Speaker, if the United States Capitol Police determines that information or conditions, including but not limited to violent threats, warrant such protection: Provided further, That the United States Capitol Police is authorized to enter into Memoranda of Understanding with relevant state and local law enforcement agencies, as needed, to carry out this section.