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.
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 claims the breaches are "not indicative of any embedded breaches" within the country's justice system, it accepts they are "disappointing".
Chief operating officer Carl Crafar said staff are 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.
She said the numbers were higher than what she was aware of - but they might not have all reached the threshold for reporting.
"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-2021.
All 151 of those employment actions were the result of staff members looking through court records without a justified reason.
They also all happened in 2020. Outside of that year, there was not a single employment action taken against a staff member.
The Ministry said the employment investigations came after concerns were raised about staff accessing documents they shouldn't be.
While the breaches occurred in 2018 and 2019, it wasn't until 2020 that action was taken following the completion of employment investigations.
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 remain however over why there was employment action against 151 staff in one year, but none in any of the other years when breaches occurred.
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."
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 also serves as the chair of the Privacy Foundation, told Open Justice breaches among the Ministry's own staff was always the biggest risk for an agency of that size.
"I would think that's massive; that's the Trojan horse, your biggest risk," the professor 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 have access to court documents through their roles.
Gunasekara said the increase in privacy breaches in recent years may be related to a change in the Privacy Act, which now requires all serious breaches to be reported almost immediately.
MacPherson said there is a misconception that privacy breaches only occur where personal information is 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 has 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.