The Santa Clara County and Alameda County district attorneys’ offices announced Walgreens will pay $7.5 million to settle a lawsuit alleging the pharmacy chain allowed an unlicensed employee to handle hundreds of thousands of prescriptions.

Walgreens employed Kim Thien Le as an intern and a pharmacist for 15 years during which she handled over 745,000 prescriptions, including 100,000 prescriptions for controlled substances such as oxycodone, fentanyl, morphine and codeine, according to a statement from the Santa Clara County district attorney’s office.

Le, 44, worked at Walgreens locations in Milpitas, San Jose and Fremont and was never licensed as a pharmacist and used the license of someone else with the same first name, according to a consumer protection lawsuit filed by the two Bay Area counties.

A stipulation in the agreement between Walgreens and the counties states that there is no evidence of harm and that “individual restitution to any person who could have potentially been harmed as a result of the conduct alleged in the complaint is impractical or impossible to determine.”

Alameda County district attorney spokeswoman Teresa Drenick said in an email that the money will be used to enforce consumer protection laws.

The final judgment requires Walgreens to ensure licensure compliance by implementing a verification program, posting proof of licensure, conducting annual audits and submitting an annual compliance report,” the Santa Clara County district attorney’s office said.

Le has not worked for Walgreens since October 2017, according to an email from Walgreens spokesman Phil Caruso. “Pharmacy quality and safety are top priorities, and upon learning of this issue, we undertook a re-verification of the licenses of all our pharmacists nationwide,” Caruso wrote.

Le was also charged last year with criminal identity theft, false personation and false pretenses in a separate criminal case. Le has pleaded not guilty in that case. Her attorney did not immediately respond to an emailed request for comment.

A pretrial hearing in the criminal case is scheduled for Feb. 27.

San Francisco Chronicle staff writer Megan Cassidy contributed reporting to this story.

Chase DiFeliciantonio is a San Francisco Chronicle staff writer. Email: chase.difeliciantonio@sfchronicle.com Twitter: @ChaseDiFelice