Word of the selection of Ms. Glen began to circulate last week, but some who had heard about Mr. de Blasio’s decision said they doubted she would leave Goldman, where she has worked for more than a decade. A deputy mayor earns about $212,000 a year, or less than even junior investment bankers make. Before joining Goldman, Ms. Glen was the assistant commissioner for housing finance at the Department of Housing Preservation and Development for four years under Mayor Rudolph W. Giuliani. She has a degree from Columbia Law School and worked at a law firm before going to work for the city. At Goldman, Ms. Glen runs a division that focuses on good works. She is the head of the company’s Urban Investment Group, which helps to finance projects in communities that have trouble obtaining loans and attracting private investment. Among the group’s projects was a $9.6 million loan for a four-year program to try to reduce recidivism by young men released from jail at Rikers Island. Another was the Citi Bike bike-sharing program. Ms. Glen has shrugged off suggestions that Goldman is driven by greed, a notion most vividly propagated in a 2009 article in Rolling Stone magazine that called the firm “a great vampire squid wrapped around the face of humanity.” In an interview this summer with Crain’s New York Business, Ms. Glen said, “We’re not all evil squids. We’re nice little calamari.”