A Nassau judge has sentenced a Brooklyn woman to a 5-year probation term after her guilty plea in an identity theft-related case involving a 72-year-old victim, court records show.

Nassau police said in January that the victim knew Petal Foster, then 37, as a counselor for Safe Horizon, a New York City-based victims’ services organization the woman had used in 2015.

Police alleged Foster used the victim’s identity to help get a car loan of more than $37,000. The victim found out she’d been listed as a co-signer of the loan when she tried to buy a cellphone in Hempstead, according to police.

In June, Foster pleaded guilty to a felony charge of attempted identity theft before she was sentenced in a Mineola court Monday, records show.

advertisement | advertise on newsday

At the time of her arrest, she had faced charges of second-degree possession of a forged instrument, first-degree identity theft and third-degree unlawful possession of personal identification.

Prosecutors on Tuesday confirmed the sentence, which included an order of protection, but declined to comment on the case.

Records show a Legal Aid Society attorney represented Foster, but the agency doesn’t comment on clients’ cases.

A spokesman for Safe Horizon, a nonprofit that helps victims of violence and crime, said in a statement that Foster “committed an unforgivable crime,” and had been fired in April 2015 before the organization learned of her wrongdoing.

“We are deeply saddened and angered that a former employee violated the trust of a client, the trust of Safe Horizon and the code of ethics she had agreed to upon her hire,” spokesman Brian Pacheco added.