U.S. intelligence officials have withheld sensitive intelligence from President Donald Trump because they are concerned it could be leaked or compromised, according to current and former officials familiar with the matter.

The officials’ decision to keep information from Mr. Trump underscores the deep mistrust that has developed between the intelligence community and the president over his team’s contacts with the Russian government, as well as the enmity he has shown toward U.S. spy agencies. On Wednesday, Mr. Trump accused the agencies of leaking information to undermine him.

In some of these cases of withheld information, officials have decided not to show Mr. Trump the sources and methods that the intelligence agencies use to collect information, the current and former officials said. Those sources and methods could include, for instance, the means that an agency uses to spy on a foreign government.

A White House official said: “There is nothing that leads us to believe that this is an accurate account of what is actually happening.”

A spokesman for the Office of Director of National Intelligence said: “Any suggestion that the U.S. intelligence community is withholding information and not providing the best possible intelligence to the president and his national security team is not true.”