A Sudanese man dodged arrest for groping a woman and fleeing from cops Sunday — all because he’s a diplomat, according to police sources.

Hassan Salih, 36, grabbed the 23-year-old victim’s butt and breast while they were on the dance floor at Third Avenue’s Bar None at around 2:25 a.m., the sources said.

The woman complained to bouncer Tracy Juniors about the pervy patron, and Juniors detained Salih until police could arrive, the sources said.

While cops were interviewing Salih and his accuser, Salih allegedly tried to run, so police cuffed him and put him in a cruiser.

But Salih pulled the diplomatic immunity card, and was allowed to go free after investigators confirmed he works for the Sudanese mission to the United Nations, the sources said.

The mission’s Web site lists Salih as a “second officer” — a mid-level position requiring five to 10 years of experience.

In May, Salih was selected to represent Sudan on a UN committee that oversees nongovernmental human-rights organizations, according to UN Watch.

It was not clear whether he was drinking alcohol at the bar. Booze was outlawed in his home country under Muslim Sharia law in 1983.

The penalty for possessing alcohol there is 40 lashes and a fine, according to a BBC report.

Neither Salih nor the Sudanese mission responded to repeated requests for comment.

Sunday’s incident was the second time this year an emissary from the north African state has been accused of forcible touching .Sudanese diplomat Mohammad Abdalla Ali was arrested in January for allegedly grinding his crotch on a 38-year-old woman aboard an uptown 4 train in the middle of the afternoon.

Charges against him were dropped when he provided papers proving his diplomatic immunity.

Diplomatic immunity protects envoys from arrest in host countries, often leaving local law enforcement in a lurch.

“It happens all the time,” a high-ranking law-enforcement source said. “They assault women and then they claim diplomatic immunity and they let them go.

“Cops generally get upset that these guys just thumb their noses at them. ‘Ha, ha. You can’t do anything to me.’ ”

Only the government sponsoring the diplomat can waive his or her immunity, but countries often call their functionaries home if they get into trouble here.

In July, Afghan diplomat Mohammad Yama Aini was arrested — and subsequently released — after his wife complained to hospital workers in Queens that he had beated her. He was recalled to Afghanistan for an investigation.

Last year, German diplomat Joachim Haubrichs was accused of beating his wife so badly that the Mayor’s Office for International Affairs petitioned the US State Department to request Germany waive Haubrichs’ immunity so he could be prosecuted.

Rather than allow him to face the music, Germany summoned him back to the fatherland.