White House social media director Dan Scavino has been issued a warning by the U.S. Office of Special Counsel for using an official-looking Twitter account for campaign purposes.

The ethics watchdog says Scavino violated the Hatch Act, which prevents executive branch officials from using their positions to influence elections.

Scavino had urged the defeat of a Michigan congressman, Justin Amash who helped derail efforts earlier this year to repeal and replace the Obama health care law.

He tweeted April 1 from his personal account, "justinamash is a big liability. #TrumpTrain, defeat him in primary."

Earlier: Amash to challengers: 'Bring it on' after Trump administration threat

The group Citizens for Responsibility and Ethics in Washington filed a complaint. Scavino was warned if he engages in such activity in the future, the office will consider it a "willful and knowing violation of the law."

►Make it easy to keep up to date with more stories like this. Download the WZZM 13 app now.

Have a news tip? Email news@wzzm13.com, visit our Facebook page or Twitter.