Former police officer Jason Harris ran a "campaign of hatred" against a professional dominatrix he had been paying to see, a court was told.
At the Auckland District Court this afternoon, the 43-year-old was sentenced to three-and-a-half months of home detention.
Harris was a police officer in Counties Manukau from early 2007 until he resigned in April last year.
Judge Bergseng said Harris' offending included posting sexually explicit photos of the woman around her family home, and putting her personal details on a public dating site.
He said the two first met in a professional setting but their relationship eventually developed into a friendship, and they would confide in one another.
But, between February and June 2015, the victim started being harassed.
Four advertisements were placed on different websites listing the victim's home phone number and personal email address.
Harris also illegally used a police database to access the woman's personal information.
The victim, who has name suppression, read out an impact statement outlining the huge impact the harassment had on her life.
She spoke of confiding in Harris about the harassment and paying him to help her install a security system, without knowing he was the perpetrator.
Judge Bergseng, who described the offending as a campaign of hatred, sentenced Harris to three months and 14 days of home detention. He must also complete 100 hours of community work, and pay the victim $3000 in compensation.
Harris had earlier pleaded guilty to the charges of accessing the police computer and intimidating the woman, which the judge acknowledged when setting his sentence.