A Sydney police officer said he wanted to rape Greens senator Sarah Hanson-Young's daughter during a threatening phone call made to her electorate office, court documents show.

Sean Daniel Murphy, a senior constable with NSW Police, has pleaded guilty to making the offensive remarks during a brief call to Senator Hanson-Young's Adelaide office in July.

READ MORE Senate censures Leyonhjelm over Hanson-Young slur

Court documents released on Tuesday show a Greens campaign manager answered the 57-year-old's call before the officer asked: "Can I have a picture of the Senator's daughter?"

He was told no and asked why he would want such a picture, to which he replied in an aggressive mannter that he wanted to sexually assault the girl, according to the tendered fact sheet.

Murphy told federal police in a recorded interview three weeks after the call he didn't know if he'd made the offensive comment as he'd been drunk.

But he recalled saying the senator "needed to get f***ed", asking for a daughter's photo and saying: "Do you know under Islam you can F*** 9-year-old girls?".

Greens Senator Sarah Hanson-Young says the threats made against her family by a NSW police officer are "unacceptable on every level."

"In July, in the midst of the public debate regarding comments made by Senator Leyonhjelm about me, a NSW police officer called my office and made a vile threat towards my daughter," she said.

'Appalled'

The distinguished police officer has told a court he is "appalled" by his behaviour and "contrite without relief."

Sean Daniel Murphy, a 57-year-old senior constable, was charged in October with using a carriage service to menace, harass or offend after calling the South Australian senator's office on July 3.

"I am thankful that the police found the person responsible and he has been charged and pleaded guilty in court," Ms Hanson-Young said.

“This matter is deeply distressing for me, my family, and my staff. Everybody has the right to feel safe in their homes, their workplaces and their community."

Last month, Ms Hanson-Young said the call was one of several she received after Senator David Leyonhjelm told her to "stop shagging men".

"[Mr Murphy] is appalled by his conduct. He immediately admitted what he had done," barrister John Davidson told the Downing Centre Local Court on Tuesday.

AAP

Mr Davidson said his client had been treated in hospital for post-traumatic stress disorder in recent months.

Murphy was decorated for bravery on one occasion in which he very nearly lost his life, the barrister said.

"After almost 30 years of service on street and in troubled areas ... he's seen more blood and mayhem than perhaps anyone else can imagine," he said.

Magistrate Jennifer Atkinson said the difficulty was the alleged offending had been "quite distressing" to the victims.

"There is no issue with that," Mr Davidson said.

"He is no threat, he will never be a threat."

Ms Atkinson agreed to grant Murphy bail on condition he not contact the Greens senator's office or any witnesses and that he reside either at a Wollongong address or hospital.