Trump made separate appeals to the director of national intelligence, Daniel Coats, and to Adm. Michael S. Rogers, the director of the National Security Agency, urging them to publicly deny the existence of any evidence of collusion during the 2016 election.

Coats and Rogers refused to comply with the requests, which they both deemed to be inappropriate, according to two current and two former officials, who spoke on the condition of anonymity to discuss private communications with the president.

Trump sought the assistance of Coats and Rogers after FBI Director James B. Comey told the House Intelligence Committee on March 20 that the FBI was investigating “the nature of any links between individuals associated with the Trump campaign and the Russian government and whether there was any coordination between the campaign and Russia’s efforts.”

Trump’s conversation with Rogers was documented contemporaneously in an internal memo written by a senior NSA official, according to the officials. It is unclear if a similar memo was prepared by the Office of the Director of National Intelligence to document Trump’s conversation with Coats. Officials said such memos could be made available to both the special counsel now overseeing the Russia investigation and congressional investigators, who might explore whether Trump sought to impede the FBI’s work.