The episode, detailed in the new book titled "Border Wars," reveals the President's belief that people from Somalia posed a danger to the US.
Months earlier, Trump targeted foreign nationals coming to the US from eight countries, including Somalia, in his "travel ban" executive order.
CNN purchased a copy of "Border Wars," by The New York Times' Julie Hirschfeld Davis and Michael D. Shear, ahead of its official release.
"Border Wars" dives into the back and forth between career officials and Miller, who's been an active proponent of lowering the number of refugees admitted to the US.
Democrats and Republicans were at an impasse over immigration, especially the President's border wall.