Washington (CNN) The Trump administration plans to require immigrants applying to come to the United States to submit five years of social media history, it announced Thursday, setting up a potential scouring of their Twitter and Facebook histories.

The move follows the administration's emphasis on "extreme vetting" of would-be immigrants to the US, and is an extension of efforts by the previous administration to more closely scrutinize social media after the San Bernardino terrorist attack.

According to notices submitted by the State Department on Thursday, set for formal publication on Friday, the government plans to require nearly all visa applicants to the US to submit five years of social media handles for specific platforms identified by the government -- and with an option to list handles for other platforms not explicitly required.

The administration expects the move to affect nearly 15 million would-be immigrants to the United States, according to the documents. That would include applicants for legal permanent residency. There are exemptions for diplomatic and official visas, the State Department said.

The decision will not take effect immediately -- the publication of the planned change to visa applications on Friday will start a 60-day clock for the public to comment on the move.