Goldman Sachs Group Inc. agreed to pay $36.3 million over allegations that former employees obtained confidential documents from the Federal Reserve in a settlement that also requires the bank to beef up its policies to prevent another lapse.

The Fed is also pursuing a fine and a permanent banking ban against a former Goldman Sachs managing director, Joseph Jiampietro, over his unauthorized use and disclosure of Fed secrets, according to a statement Wednesday from the agency. The Fed said Goldman Sachs’ employees used confidential supervisory information in presentations to clients to try to solicit business.

Starting in 2012, Jiampietro -- an investment banker who formerly worked at the Federal Deposit Insurance Corp. -- received bank regulators’ unauthorized supervisory information and used it for his work at Goldman Sachs, according to the Fed.

In 2014, a Goldman Sachs banker, Rohit Bansal, allegedly shared confidential Fed documents with members of his team that Bansal got from a New York Fed employee he had previously worked with. According to an earlier $50 million settlement with the New York Department of Financial Services, Bansal obtained about 35 documents on about 20 occasions from his friend Jason Gross, who was still a New York Fed employee. The information Bansal got from Gross related to a bank that was a Goldman Sachs client, according to that settlement.

Goldman Sachs has previously said that once management learned of the improper conduct, it began an internal investigation and alerted regulators.

The New York-based lender must fix shortcomings in its policies to prevent future lapses, the Fed said. It must establish an enhanced program to meet compliance expectations around using and disseminating secret supervisory information, according to the settlement. The bank also isn’t allowed to re-hire people involved in the improper disclosures.

In November, the former Goldman Sachs banker Bansal pleaded guilty to a misdemeanor tied to the stolen Fed documents, and the former New York Fed employee, Gross, pleaded guilty to passing him the secret information. The Fed barred Bansal from banking last year, and the Securities and Exchange Commission banned him from the securities industry in June.