(CNN) Outgoing United Nations Ambassador Nikki Haley joked Thursday during the annual Alfred E. Smith Memorial Foundation Dinner that the organizers had "wanted an Indian woman, but Elizabeth Warren failed her DNA test."

At the dinner, which is known for political figures cracking jokes during the keynote address, Haley said that after President Donald Trump's speech at the charity dinner for the Catholic Church two years ago and Paul Ryan giving a "choir boy" speech last year , "this year you wanted to spice things up again, right?" Haley said.

"I get it. You wanted an Indian woman, but Elizabeth Warren failed her DNA test," Haley joked.

"Actually, when the President found out that I was Indian-American, he asked if I was from the same tribe as Elizabeth Warren," she quipped.

Haley announced last week that she is resigning her post and will leave the administration at the end of the year.

Read More