You will notice this isn't about security but about identifying pro-Palestinian activists:
Quote: "The agent, suspecting Tamari was involved in pro-Palestinian activism, wanted to inspect her private email account for incriminating evidence. The 42-year-old American of Palestinian descent refused and was swiftly expelled from the country."
http://www.timesofisrael.com/pro-palestinian-activist-says-s...