JOHANNESBURG — Richard Goldstone, the South African judge who had said threatened protests at his grandson’s bar mitzvah would keep him from attending, has reached an agreement with Jewish groups here that will allow him to go to the ceremony after all.

“I am delighted that I will be able to attend the bar mitzvah,” the judge said in an e-mail message on Saturday.

A day earlier, the South African Jewish Board of Deputies, which represents most of the country’s synagogues, issued a statement that outlined something like a quid pro quo: a promise of no protests on the bar mitzvah boy’s big day, in exchange for a meeting between the judge and leaders of the South African Zionist Federation and other Jewish organizations.

Judge Goldstone, a former member of this country’s highest court, led a United Nations investigation into Israel’s invasion of Gaza that concluded that Israel and Hamas had taken actions amounting to war crimes.

Though the findings rebuked both sides, the sharper criticism was aimed at Israel. The Israeli government disputed the conclusions, and many Jewish groups argued that the report was not only wrongheaded but that it was also part of vicious international efforts to defame Israel and deny its legitimacy.

In South Africa, as elsewhere, Jewish opinion was divided. Some lauded Mr. Goldstone as a man of principle while others called him a traitor to his people.

At least one organization, identified by the judge as the South African Zionist Federation, warned that Mr. Goldstone’s attendance at the bar mitzvah next month would be met with protests.

But the announcement by the board of deputies on Friday said there had been “consultation with all parties involved” and now the bar mitzvah would “be returned to the privacy and dignity it deserves.”

However joyous the young man’s ceremony at a suburban Johannesburg synagogue may be, the promised meeting is likely to be rancorous.

The Zionist federation has contended that the Goldstone Report was “unequivocally hostile to Israel while being little more than fallacious propaganda.”

Last week, Warren Goldstein, the chief rabbi of South Africa and a persistent critic of the report, wrote in the newspaper Business Day that the judge should be allowed to attend the bar mitzvah because every synagogue “should welcome in a tolerant and nonjudgmental way all who seek to enter and join in our service and pray to God.”

But Rabbi Goldstein also renewed his criticism of the judge, saying his report “has unfairly done enormous damage to the reputation and safety of the State of Israel and her citizens.”

In a letter to the editor published the next day, Judge Goldstone wrote that he was “dismayed that the chief rabbi would so brazenly politicize the occasion of my 13-year-old grandson’s bar mitzvah to engage in further personal attacks on me.”

He added that Rabbi Goldstein’s “rhetoric” about tolerance “simply does not coincide with how my family and I have been treated.”