(Reuters) - Microsoft Corp said it will drop a lawsuit against the U.S. government after the Department of Justice (DOJ) changed data request rules on alerting internet users about agencies accessing their information.

FILE PHOTO - A sign marks the Microsoft office in Cambridge, Massachusetts, U.S. January 25, 2017. REUTERS/Brian Snyder/File Photo

The new policy limits the use of secrecy orders and calls for such orders to be issued for defined periods, Microsoft Chief Legal Officer Brad Smith said in a blog post on Monday.

"As a result of the issuance of this policy, we are taking steps to dismiss our lawsuit," Smith said. bit.ly/2gE3kDp

The company expects the changes to end the practice of indefinite secrecy orders.

Microsoft filed the lawsuit in April 2016 arguing that the U.S. government was violating the constitution by preventing the company from informing its customers about government requests for their emails and other documents. reut.rs/2zLIjv0

The suit argued that the government’s actions were in violation of the Fourth Amendment, which establishes the right for people and businesses to know if the government searches or seizes their property, and the company’s First Amendment right to free speech.

The changes will ensure that secrecy order requests are “carefully and specifically tailored to the facts in the case,” Smith said.

“This is an important step for both privacy and free expression. It is an unequivocal win for our customers, and we’re pleased the DOJ (Department of Justice) has taken these steps to protect the constitutional rights of all Americans,” the statement said.

While Microsoft has agreed to drop its lawsuit, Smith said the company is renewing its call to Congress for the amendment of the Electronic Communications Privacy Act which was adopted in 1986.

The DOJ did not respond to request for comment outside regular business hours.

Last week, the U.S. Supreme Court agreed to hear the Trump administration’s appeal of a lower court’s ruling preventing federal prosecutors from obtaining emails stored in Microsoft computer servers in Dublin, Ireland in a drug trafficking investigation.

Government lawyers argued the lower court ruling threatened national security and public safety.