Attorney General-elect Letitia James on Thursday announced she would keep her predecessor on in a role she previously held in the office.

James in a statement said she planned to appoint Attorney General Barbara Underwood the state’s solicitor general.

Underwood had served in that role until May, when she was appointed by the state Legislature to fill out the remainder of Eric Schneiderman’s term following his resignation amid allegations of sexual and domestic abuse. Her appointment made her the first woman to serve in the post.

“She is an exceptionally qualified attorney who has the experience and skills we need to continue taking on the greatest challenges facing our state,” James said. “I am honored and proud to make this appointment and to have her serve alongside me.”

Underwood at the time of her appointment had said she would not run for the post, opening up the office for the first time since 2010.

“It’s been an incredible privilege to serve as New York’s 66th Attorney General – and I look forward to continuing to serve the people of New York as I resume my former role of Solicitor General in January,” Underwood said. “I’m so honored to be joining Tish’s team. It’s clear that Tish is committed to building on the critically important work of the past few years and that, under her leadership, we’ll continue and expand our efforts to protect New Yorkers and fight for equal justice for all.”