A police officer has gone on trial accused of illegally accessing her own case file.
Acting Sergeant Victoria Robb is said to have logged on to a computer and looked at details of driving offences she allegedly committed.
Robb, 31, went on trial accused of breaking data protection laws at Hamilton Sheriff Court yesterday.
Prosecutors claim that she unlawfully accessed a police database four times on April 17, 2019.
Police Scotland Information Manager Alice Stewart, 51, told the court that Robb's unique ID number was recorded as accessing a digital file four times in one day.
She said a computer network called Storm is "a kind of tasking system that police officers would use" to help investigate crimes, containing details of witnesses, locations and allegations.
Miss Stewart, who has worked for the police for 21 years, said the file Robb is accused of illegally accessing was about an investigation into claims she was guilty of road traffic crimes.
She said "everything" on the system was covered by data protection laws and would have been "gathered for a single purpose - gathered for investigative purposes or prevention of crime".
She said it would include the details of "the person who called in to report an incident, or the victim".
The court heard that Robb had undertaken data protection training and had passed online tests on the topic.
When asked by prosecutor Toni Hicks if she believed AS Robb "accessing the Storm incident and viewing it constitutes a breach of the Data Protection legislation", Miss Stewart replied: "It would, in my opinion, yes.
"There was no policing purpose that was identified.
"It was carried out on multiple occasions and we have evidence to show that training and information was provided.
"They've been provided with that information during their service."
The trial before Sheriff Diane Turner continues next month.
Don't miss the latest news from around Scotland and beyond - Sign up to our daily newsletter here.