More than 150 Ministry of Justice staff and contractors tasked with maintaining the integrity of New Zealand's justice system faced employment action after being caught snooping through court records in two years.
But it was two years before employment action was taken against some of those staff - almost all of whom kept their jobs.
The incidents are among more than 1500 recorded privacy breaches since 2015.
While the ministry said the breaches were "not indicative of any embedded breaches" within the country's justice system, it accepted they were "disappointing".
Chief operating officer Carl Crafar said staff were expected to uphold the integrity of the justice system.
"Any privacy breach is disappointing. Ministry staff have appropriate access based on their roles and are expected to maintain the integrity of the courts and tribunals."
Acting Privacy Commissioner Liz MacPherson told Open Justice all "serious" breaches must be reported to the commissioner within 72 hours.
The numbers were higher than what she was aware of - but they might not have all reached the threshold for reporting, she said.
"We will contact the ministry for further information to confirm if any of these breaches were above the serious harm threshold and should therefore have been notified."
According to the figures obtained by Open Justice under the Official Information Act, 150 staff were formally warned and a single additional staffer dismissed in the six years from 2015 to 2021.
All 151 of those employment actions were the result of staff members looking through court records without a justified reason.
The actions all happened in 2020. Outside of that year, there was not a single employment action taken against a staff member.
While the breaches occurred in 2018 and 2019, it wasn't until 2020 that action was taken following the completion of employment investigations.
The ministry said the employment investigations came after concerns were raised about staff accessing documents they shouldn't be.
When asked why it took so long for that action to be taken Crafar said it took time to carry out the process properly.
Questions remained however, over why there was employment action against 151 staff in one year, but none in any of the other years.
The ministry strongly denied any suggestion that lax breach-monitoring processes were the reason no action was taken in the other five years.
"Our information security policies meet the government standard."
1500 privacy breaches in six years
Of the 1537 occasions where sensitive personal and criminal information held by the ministry was breached, 1225 times were by the ministry's own staff, and 220 by third-party contractors.
Just over 400 of those breaches occurred last year alone - four times the number of breaches in 2015.
Most of the breaches happened in the Wellington region, home to New Zealand's senior judiciary as well as the Supreme Court and Court of Appeal.
Auckland followed closely behind, again likely explained by the region's substantial caseload.
But the data also identified those areas where privacy breaches were higher than their caseload would suggest, such as the ministry's offices in Tauranga, which alone had more breaches than the entire Canterbury, Waikato, and Otago regions.
The Tauranga District Court and public defence service offices saw 34 total breaches. The wider Bay of Plenty region recorded the third-highest number of breaches after Wellington and Auckland, sitting at 64.
A total of 256 of the nationwide breaches did not have a location recorded, while an extra 175 breaches occurred at a non-ministry location.
Ministry's own staff the 'biggest risk' - professor
Auckland University associate professor in commercial law Gehan Gunasekara, who is chairman of the Privacy Foundation, told Open Justice that breaches among the ministry's own staff were always the biggest risk for an agency of that size.
"I would think that's massive; that's the Trojan horse, your biggest risk," he said. "You want to make sure you've got trustworthy people on the inside."
"It would be disappointing if Ministry of Justice officials were essentially not following the law."
Around 2700 ministry staff work in or around courts and tribunals. The ministry would not confirm how many of those staff had access to court documents through their roles.
Gunasekara said the increase in privacy breaches in recent years could be related to a change in the Privacy Act, which now required all serious breaches to be reported almost immediately.
MacPherson said there was a misconception that privacy breaches only occurred where personal information was inadvertently shared to or inappropriately accessed by someone external to the agency.
"That's not the case. Internal issues such as employees looking up other people's personal records without good reason are also privacy breaches."
Crafar said the organisation had since taken steps to review its processes and introduce further prevention strategies, regular training and reminding staff of the code of conduct.
"Data security and privacy are central to our work at the Ministry of Justice and all staff receive training on the importance of safeguarding personal information."
*This story originally appeared in The New Zealand Herald.