The Senate confirmed Kelly Craft to be the U.S. ambassador to the United Nations, despite scathing criticism of the nominee from Democrats.

The vote was 56 to 34, with just five Democrats voting in the affirmative.

Sens. Joe Manchin (D-W.V.), Maggie Hassan (D-N.H.), Chris Murphy (D-Conn.) Jeanne Shaheen (D-N.H.) and Kirsten Sinema (D-Ariz.) all said yes during the late Wednesday afternoon vote.

Craft, who previously served the Trump administration as the U.S. ambassador to Canada, fills a vacancy left open for seven months.

The position was formerly held by Nikki Haley, the ex-governor of South Carolina. Haley received overwhelming support in her Senate confirmation, with the vote being 96-4 back in 2017.

Craft’s inexperience and “inexcusable absenteeism” got her called out by Democrats like Sen. Bob Menendez (D-N.J.), the top Democrat on the Senate Foreign Relations Committee.

“I encourage my colleagues to oppose Ambassador Craft’s nomination because she doesn’t have the necessary experience to stand up for American values and promote our national security, and because during her limited diplomatic tenure, her unacceptable absences in Canada were nothing less than a dereliction of duty,” Menendez said in a statement.

“Never in our nation’s history have we nominated such an underqualified person to this critical post.”

Kraft was a top Republican donor from Kentucky. She ran a small marketing consulting firm and before her tenure in Canada served for one session as an alternate US delegate to the UN.

She was criticized by Democrats for visiting her homes in Kentucky and Oklahoma instead of staying put in the U.S. embassy in Ottawa.

On the heels of meeting with Craft last week in his office, the Senate’s No. 2 Democrat, Sen. Dick Durbin (D-Ill.) also expressed reservations.

“We live in a dangerous world and the U.S. plays a critical role in keeping the peace. Ambassador Craft has limited experience in statecraft and global challenges. I am concerned that she is not prepared for this position with the UN,” Durbin said in a statement.

Senate Majority Mitch McConnell (R-Ky.), who voted for Craft’s nomination, suggested her experience in Canada was enough for her to be effective at the UN.

“During her tenure as ambassador to Canada, America’s relationship with our northern neighbor was tested. A number of challenging policy hurdles threatened to trip up progress on several important issues, including trade negotiations. But by all accounts, Ambassador Craft’s involvement led to greater cooperation,” McConnell said on the Senate floor before the vote.