The Federal Protective Service is a law enforcement and security agency with a long history of protecting U.S. government facilities and safeguarding the millions of employees, contractors, and visitors who pass through them every day. Its history dates back to 1790 when six "night watchmen" were hired to protect government buildings in the newly designated nations capital that became Washington, D.C. Over time, the network of security guards grew and evolved and was once known as the U.S. Special Police. The Federal Protective Service was formally established by the U.S. General Services Administration (GSA) in 1971 with the mission of protecting federal facilities and their occupants. When the Homeland Security Act of 2002 was passed, FPS was transferred from GSA to the newly formed Department of Homeland Security (DHS) and structured within U.S. Immigration and Customs Enforcement. On October 28, 2009, the DHS Fiscal Year 2010 Appropriations Act transferred FPS to the National Protection and Programs Directorate (NPPD).
My personal opinion, "night watchmen" isn't in quotes for no special reason. Washington became very sensitive to spies starting in 1753. Counterintelligence and counterinsurgency have been around for a very long time. I think lots groups that have interests in domestic surveillance have unofficial agreements of cooperation from parts of some US executive departments. There are instances of military officers from Five Eyes nations holding senior positions within US intelligence agencies. Other than the FBI, most US "spy groups" are restricted from domestic operations. "Friendly" foreign government groups may have no such commitments.