(1) Except as provided in paragraph (2), whenever any person who has requested agency records under section
552 of title
5 alleges that the National Security Agency has withheld records improperly because of failure to comply with any provision of this section, judicial review shall be available under the terms set forth in section
552 (a)(4)(B) of title
5.
(2) Judicial review shall not be available in the manner provided for under paragraph (1) as follows:
(A) In any case in which information specifically authorized under criteria established by an Executive order to be kept secret in the interests of national defense or foreign relations is filed with, or produced for, the court by the National Security Agency, such information shall be examined ex parte, in camera by the court.
(B) The court shall determine, to the fullest extent practicable, the issues of fact based on sworn written submissions of the parties.
(C) When a complainant alleges that requested records are improperly withheld because of improper placement solely in exempted operational files, the complainant shall support such allegation with a sworn written submission based upon personal knowledge or otherwise admissible evidence.
(D)
(i) When a complainant alleges that requested records were improperly withheld because of improper exemption of operational files, the National Security Agency shall meet its burden under section
552 (a)(4)(B) of title
5 by demonstrating to the court by sworn written submission that exempted operational files likely to contain responsive records currently perform the functions set forth in subsection (b) of this section.
(ii) The court may not order the National Security Agency to review the content of any exempted operational file or files in order to make the demonstration required under clause (i), unless the complainant disputes the National Security Agencys showing with a sworn written submission based on personal knowledge or otherwise admissible evidence.
(E) In proceedings under subparagraphs (C) and (D), the parties may not obtain discovery pursuant to rules 26 through 36 of the Federal Rules of Civil Procedure, except that requests for admissions may be made pursuant to rules
26 and
36.
(F) If the court finds under this subsection that the National Security Agency has improperly withheld requested records because of failure to comply with any provision of this subsection, the court shall order the Agency to search and review the appropriate exempted operational file or files for the requested records and make such records, or portions thereof, available in accordance with the provisions of section
552 of title
5, and such order shall be the exclusive remedy for failure to comply with this section (other than subsection (g) of this section).
(G) If at any time following the filing of a complaint pursuant to this paragraph the National Security Agency agrees to search the appropriate exempted operational file or files for the requested records, the court shall dismiss the claim based upon such complaint.
(H) Any information filed with, or produced for the court pursuant to subparagraphs (A) and (D) shall be coordinated with the Director of National Intelligence before submission to the court.