Microsoft filed the suit against the Justice Department in federal court in Seattle, near the company's headquarters in Redmond.
"Microsoft brings this case because its customers have a right to know when the government obtains a warrant to read their emails, and because Microsoft has a right to tell them," lawyers for the company said in the court filing.
The Electronic Communications Privacy Act lets courts order Microsoft or other email service providers to remain silent about warrants for data on the overly general grounds that there is "reason to believe" tipping people off might hamper investigations, according to the suit.
In the past 18 months, federal courts have issued nearly 2,600 secrecy orders gagging Microsoft from saying anything about warrants and other legal actions targeting customers' data, according to the filing.
"We believe that with rare exceptions consumers and businesses have a right to know when the government accesses their emails or records," Microsoft chief legal officer Brad Smith said in a blog post.
"Yet it's becoming routine for the US government to issue orders that require email providers to keep these types of legal demands secret. We believe that this goes too far and we are asking the courts to address the situation."
The situation has become more urgent as computing and data storage services shift from software packages loaded onto individual computers to servers running in the Internet cloud.
"Today, individuals increasingly keep their emails and documents on remote servers in data centers -- in short, in the cloud," Smith said.
"But the transition to the cloud does not alter people's expectations of privacy and should not alter the fundamental constitutional requirement that the government must -- with few exceptions -- give notice when it searches and seizes private information or communications."
You’ve reached your limit of {{free_limit}} free articles this month.
Subscribe now for unlimited access.
Already subscribed? Log in
Subscribe to read the full story →
Smart Quarterly
₹900
3 Months
₹300/Month
Smart Essential
₹2,700
1 Year
₹225/Month
Super Saver
₹3,900
2 Years
₹162/Month
Renews automatically, cancel anytime
Here’s what’s included in our digital subscription plans
Exclusive premium stories online
Over 30 premium stories daily, handpicked by our editors


Complimentary Access to The New York Times
News, Games, Cooking, Audio, Wirecutter & The Athletic
Business Standard Epaper
Digital replica of our daily newspaper — with options to read, save, and share


Curated Newsletters
Insights on markets, finance, politics, tech, and more delivered to your inbox
Market Analysis & Investment Insights
In-depth market analysis & insights with access to The Smart Investor


Archives
Repository of articles and publications dating back to 1997
Ad-free Reading
Uninterrupted reading experience with no advertisements


Seamless Access Across All Devices
Access Business Standard across devices — mobile, tablet, or PC, via web or app
