NSW Transport Minister Jo Haylen's office has been accused of acting unlawfully by interfering in the appointment of departmental staff in the public service.
The minister's chief of staff requested the appointment of a specific senior executive to lead the transition office after the March election, a budget estimates hearing was told on Tuesday.
That breached rules designed to keep the public service at arm's length from the government, the opposition said.
"It's in breach of the act to tell the public service who to employ," opposition transport spokeswoman Natalie Ward later told reporters.
"So much so that Susan Carroll said they were required to get legal advice."
Ms Carroll, the department's chief of staff, told the hearing the request to then-secretary Rod Sharp prompted further questions.
Howard Collins twice raised his staff's concerns over Kieren Ash's secondment.
"The minister's chief of staff raised with the former secretary that request and there was a conversation in relation to that request and legal advice was taken," Ms Carroll told the hearing.
The transport minister insisted proper processes were subsequently followed, with a public recruitment process run to find the head of the critically important office.
"It illustrates the value of robust and frank advice from a public servant to ensure proper processes occurred," Ms Haylen told the hearing.
The episode is the latest staffing scandal linked to the minister, whose chief of staff Scott Gartrell resigned on Friday.
Ms Haylen has declined to explain why Mr Gartrell resigned but denies she had made the semi-retired goat farmer her own scapegoat.
The departure came after a Labor-linked public servant parachuted into Ms Haylen's office appeared to breach the terms of his apolitical role.
Former party candidate Kieren Ash is under investigation after emails emerged last week of him organising a barbecue for Labor election volunteers and circulating a list of coalition "backflips".
Ms Carroll confirmed she was among officials to raise concerns with Mr Gartrell about Mr Ash's party links months before the secondment was terminated in September.
Howard Collins, who acted as transport secretary for four months, said he had advised Mr Gartrell to ensure department liaison officers such as Mr Ash, paid by the department, did not stray beyond their brief.
"Personally, I didn't have concerns but my staff did raise them on a couple of occasions," he told the hearing.
"Obviously, they have more detailed dealings with those individuals."
Mr Ash had appeared on a list of department staff Ms Haylen's office wanted seconded as liaison officers.
Greens MP Abigail Boyd asked why the minister did not choose to get "ahead of the game" when evidence of Mr Collins' concerns for Mr Ash first emerged.
Premier Chris Minns has defended his transport minister over staffing issues.
"It appears Mr Collins was right," Ms Boyd said.
But Ms Haylen said concerns were handled by Mr Gartrell and no issues were raised directly with her.
Her dealings with Mr Ash in his role as liaison officer were that he stuck to expertise on inter-governmental affairs and other advisory matters, she said
Mr Collins said he considered Mr Gartrell the right person to handle it because he was responsible for employment in the ministerial office.
But the coalition said it was not plausible the minister was unaware of Mr Gartrell's actions and conversations with senior departmental officials.
Ministers and their chief of staff "are joined at the hip", Ms Ward told reporters.
The Melbourne Cup Day hearing came after Ms Haylen faced repeated questions in parliament over her appointment of former Labor government staffer and infrastructure executive Josh Murray to lead the transport department.
Premier Chris Minns has rejected calls to sack his minister, saying she was the right person to pilot the department after years of turbulence.