The San Francisco Sheriff’s Office is warning residents about a scam in which callers posing as sheriff’s deputies tell families they can secure the early release of an incarcerated loved one in exchange for payment.

Authorities said Friday that scammers would claim inmates qualify for an early release program because of jail overcrowding and demand fees for ankle monitors, court costs or processing.

The callers may use spoofed phone numbers and personal details about inmates to appear legitimate, deputies said.

Sheriff Paul Miyamoto said the agency will never ask family members for money to release someone from custody.

Authorities urged anyone who receives such a call to hang up, avoid sharing personal information, and verify claims by calling the Sheriff’s Office directly.

Similar scams have recently been reported by sheriff’s offices in Alameda and Monterey counties.

San Francisco officials said they are working with other Bay Area law enforcement agencies to investigate the scheme while partnering with the city’s StopScams SF initiative to raise awareness and assist victims.

Residents who believe they have lost money can seek free financial counseling through StopScams SF.