SAN FRANCISCO (CBS SF) — Local officials were irate Thursday over the arrest by federal Immigration and Customs Enforcement agents of an individual as he entered a San Francisco courthouse for a hearing in violation of the city’s sanctuary law.

Both the San Francisco Public Defender and the District Attorney condemned the action on the steps of the courthouse on 850 Bryant St., and called on ICE to stop making courthouse arrests. Immigration rights advocates said it was the first time this type of courthouse immigration enforcement has occurred in San Francisco.

READ MORE: 14-Year-Old Arrested For Murder Of Teen Found Dead Near Train Tracks In Fairfield

ALSO READ: Immigrants’ Rights Groups Rally Against ICE Arrests Outside Sonoma County Courthouse

“ICE actions in or near our courthouses deters people from accessing our justice system, making us all less safe,” said San Francisco District Attorney Chesa Boudin.

Two weeks ago, Sonoma County officials were angered when ICE agents arrested at least three people at the Sonoma County Superior Court campus.

READ MORE: UPDATE: Winds Stoke Massive, Still-Growing Dixie Fire in Northern California

ALSO READ: 9th Circuit Court Halts Trump’s ‘Remain In Mexico’ Policy On Asylum-Seekers

“California law explicitly forbids a civil enforcement agency, including ICE, from making a civil arrest without a warrant outside a courthouse,” said San Francisco Public Defender Mano Raju of the Election Day arrest. “San Francisco will not allow such egregious abuse of power to go unchecked; we will provide immediate and zealous representation to anyone subject to such illegal activity.”

No other details were released about the arrest. Federal authorities have no comment on the San Francisco arrest.

MORE NEWS: Former California Senator Barbara Boxer Assaulted, Robbed In Oakland's Jack London District

ALSO READ: San Jose Judge Finds US In Contempt After Immigrants In Suit Deported