A senior aide to Sen. Kamala Harris resigned this week after it was revealed he had been part of a $400,000 'gender harassment' lawsuit after repeatedly asking a staffer to crawl under his desk to change his printer paper.

Harris was still the attorney general of California at the time the staffer filed suit against Larry Wallace, then the director of the Division of Law Enforcement, in late 2016, although she had already been elected to federal office.

She took Wallace with her to the Senate, making him a senior aide in her Sacramento office, because she was not aware of the suit, a spokeswoman for the senator has since said.

Larry Wallace, a senior aide to Sen. Kamala Harris, resigned this week after it was revealed he had been part of a $400,000 'gender harassment' lawsuit after repeatedly asking a staffer to crawl under his desk to change his printer paper

The Sacremento Bee unearthed the $400,000 settlement this week that had been filed by Wallace's former executive assistant in the attorney general's office.

Danielle Hartley accused Wallace of demeaning behavior in the suit filed on Dec. 30, 2016 in California.

'Hartley had concerns she was being harassed and demeaned due to her gender,' the suit stated.

She had begun working for Wallace several years prior in 2011, and suit does not say when the harassment began and ended.

It alleges that Wallace asked her to change his printer paper or ink on a daily basis and that he refused to move the device to a more convenient location. Harley says he routinely asked her crawl under his desk while he was sitting at it and other male staffers were around, sometimes when she was wearing dresses or skirts.

The lawsuit accuses his of behavior that went beyond sexual harassment, arguing that he did not give her 'meaningful tasks' and instead had her running personal errands for him.

She says she booked flights for her boss's children and washed his car, and the suit accuses him of intentionally humiliating her in front of her office colleagues.

'Co-workers would make hostile comments to her including, "Are you walking the walk of shame?" the suit says.

When she turned to a female supervisor in the office, she said the harassment escalated. She was reportedly investigated by internal affairs for a 'fabricated charge' and told she should 'seek employment elsewhere.'

Eventually, she was reassigned to another division several days before Christmas in 2014. She began looking for other unemployment at that time but couldn't locate another job because the 'stress from all of the harassment' and because she was being overlooked for promotions, the suit alleges.

The case closed in May of 2017, after Harris' replacement, Xavier Becerra, took office. A $400,000 settlement was offered even though Becerra said that Hartley had 'unreasonably failed to utilize the procedures during the period of time, and after, the alleged harassment or discrimination was occurring.'

'Had Plaintiff taken reasonable effort to utilize these procedures Plaintiff’s alleged harm, injury or damages would have been avoided, in whole or in part,' the attorney general said.

Hartley signed a non-disclosure agreement as part of the settlement, the Bee reports, and is prohibited from working the Justice Department in California ever again.

The case closed in May of 2017, after Harris' replacement, Xavier Becerra, took office

Ex-Becerra aide and former California gubernatorial candidate Amanda Renteria says she does not remember the settlement, even though the settlement bears her signature. She joined the attorney general's staff in March of that year, three months after it had been filed.

Harris spokeswoman Lilly Adams told The Bee that the freshman senator did not know about the harassment allegations at all.

'We were unaware of this issue and take accusations of harassment extremely seriously. This evening, Mr. Wallace offered his resignation to the senator and she accepted it,' Adams told the newspaper.

The 'Me Too' episode comes against the backdrop of a potential 2020 bid by Harris.

She said this week that she would make her decision 'over the holiday' after consulting 'with my family.'

Harris is widely expected to run, however, after making stops to influential early states and donating money from her warchest to their candidates in the midterm elections.

She has led the way on sexual misconduct allegations in the Senate, coming out fiercely against one of her own colleagues, Al Franken, when a woman accused him of inappropriate contact without her consent.