Dan Scavino Jr., social media director for the White House, reportedly violated the Hatch Act when he posted a tweet attacking a congressman, notes the Washington Post.

According to the media outlet, the Hatch Act "restricts government employees from attempting to influence an election through their official authority."

The decision was announced in a June 5 letter from the U.S. Office of Special Counsel, or OSC, to the group, Citizens for Responsibility and Ethics in Washington, which requested the review.

7 PHOTOS Dan Scavino See Gallery Dan Scavino White House aide Dan Scavino listens and films as President Donald Trump speaks during an executive order signing ceremony regarding trade in the Oval Office of the White House in Washington, DC on Friday, March. 31, 2017. (Photo by Jabin Botsford/The Washington Post via Getty Images) Dan Scavino and Kellyanne Conway, aides to President Donald J. Trump, are seen on the West Front of the Capitol after Trump was sworn in as the 45th President of the United States, January 20, 2017. (Photo By Tom Williams/CQ Roll Call) White House Press Secretary Sean Spicer, left, and assistant to the president and director of White House social media Dan Scavino, center, and Mike Dubke, White House communications director, listen during a joint press conference with NATO Secretary General Jens Stoltenberg and US President Donald Trump in the East RoomPresident Donald Trump and NATO Secretary General Jens Stoltenberg participate in a news conference in the East Room of the White House in Washington, DC on Wednesday, April 12, 2017. (Photo by Jabin Botsford/The Washington Post via Getty Images) Dan Scavino Jr., White House director of social media, right, speaks with Sean Spicer, White House press secretary, outside the Oval Office of the White House in Washington, D.C., U.S., on Wednesday, May 17, 2017. Republican leaders were still pitching their plans to overhaul the health-care system and tax code Wednesday, despite a steady stream of chaos from the White House. (Andrew Harrer/Bloomberg via Getty Images) White House Director of Oval Office Operations Keith Schiller (L) and White House Director of Social Media Dan Scavino arrive to meet Pope Francis, May 24, 2017. (REUTERS/Jonathan Ernst) White House Press Secretary Sean Spicer (L) and social media director Dan Scavino Jr. stand outside the Oval Office of the White House upon President Donald Trump's return to Washington, U.S., May 17, 2017. (REUTERS/Yuri Gripas) White House staff members Deputy National Security Adviser K.T. McFarland (L), Senior Advisor Stephen Miller (2nd L) and White House Director of Social Media Dan Scavino (3rd L) arrive with U.S. President Donald Trump (not pictured) as he returns from a weekend at his New Jersey golf estate home via Air Force One at Joint Base Andrews, Maryland, U.S. May 7, 2017. (REUTERS/Jonathan Ernst) Up Next See Gallery Discover More Like This HIDE CAPTION SHOW CAPTION of SEE ALL BACK TO SLIDE

The letter references a tweet Scavino posted on April 1, 2017, which states, in part, "[Justin Amash] is a big liability. #TrumpTrain, defeat him in primary."

Amash, a Republican representative from Michigan and member of the House Freedom Caucus, reportedly incited Scavino's criticism by speaking out against Trump's effort to overhaul Obamacare, notes CBS News.

After a review, the agency found that Scavino had, in fact, violated the Hatch Act; as a Washington Post report points out, "Even though Scavino was tweeting from his personal account, his page at the time listed his official White House position and featured a photo of him inside the Oval Office."

The OSC letter says Scavino has been issued a warning, counseled about the law, and advised against engaging in such behavior in the future.