Google GOOG, -2.37% GOOGL, -2.41% Chief Executive Sundar Pichai criticized President Donald Trump’s immigration order in an email to staff late Friday, saying the U.S. ban on foreign nationals from seven countries affects at least 187 Google employees.

“We’re upset about the impact of this order and any proposals that could impose restrictions on Googlers and their families, or that could create barriers to bringing great talent to the US,” Mr. Pichai said in the email, according to a copy reviewed by The Wall Street Journal. “It’s painful to see the personal cost of this executive order on our colleagues.”