Quick search by citation:

4 U.S. Code § 72 - Public offices; at seat of Government

All offices attached to the seat of government shall be exercised in the District of Columbia, and not elsewhere, except as otherwise expressly provided by law.

(July 30, 1947, ch. 389, 61 Stat. 643.)