The Hatch Act bars federal officials from participating in political activities while serving in their official capacity and in their federal workplace.
Civilian and servicemember Department of Defense employees may have to refrain from certain political behavior for longer than their colleagues at other agencies.