Microsoft, Twitter, Google and Facebook are among the biggest tech companies that have pushed back against government demands to share users’ data with government agencies.
The latest fight comes as lawmakers consider whether to give companies more leeway to share user data with law enforcement.
The fight centers on two separate federal privacy laws, Section 702 of the Foreign Intelligence Surveillance Act (FISA), and the Foreign Agents Registration Act (FBARA).
Section 702 allows the FBI and other federal agencies to collect and hold communications metadata that could help them target individuals or groups based on foreign intelligence information.
Section FBARA is a law that prohibits U.S. government agencies from collecting the data without a warrant.
The Justice Department says the two laws can be used to target foreigners based on suspected terrorist activity.
While Section 702 has been used to track a wide range of foreigners, the FBI is also looking at Section FBARA, a provision that allows the government to seek information from foreign entities, including social media companies.
Both laws have been criticized by privacy advocates as being too broad.
But Facebook and Twitter have argued that they should not be subject to such broad restrictions.
In a post on Tuesday, Facebook said the companies would work to keep users’ information secure and that it is “committed to maintaining the security of our community and partners.”
“We’re not going to share anything without your consent,” the post said.
“But we will always provide you with tools to do that, and we’ll never give your data up.”
Google said in a statement on Tuesday that the company supports the government’s effort to reform the Foreign Agent Registration Act and believes it should be amended to prevent companies from sharing data without the user’s consent.
“We don’t think that Section 702 is the right law, and don’t believe it should remain in place, as it does not adequately address the issue of government monitoring of communications,” Google said.
Facebook, Google said, would also provide tools for users to manage their data, but the companies said that they “do not expect any of their customers to take this step.”
Twitter did not respond to a request for comment.
In January, Facebook and Google filed a lawsuit in a California federal court to block the FBI’s attempt to collect information about its users under Section 702.
The two companies argued that the FBI overstepped its bounds by trying to monitor Facebook users and their friends and contacts through the Foreign Service Act.
The lawsuit was dismissed on Tuesday in part because the government has not yet filed its appeal.
The court will consider whether the case should be reconsidered in the coming months.