This sort of thing is why we have a Fourth Amendment.

“Whether the government has a warrant to rifle through our mail, safety deposit boxes, or emails stored in the cloud, it must notify people about the searches,” said EFF Senior Staff Attorney Lee Tien. “When electronic searches are done in secret, we lose our right to challenge the legality of law enforcement invasions of privacy. The Fourth Amendment doesn’t allow that, and it’s time for the government to step up and respect the Constitution.”

https://www.eff.org/press/releases/eff-court-government-must-inform-people-its-accessing-their-emails-personal-data