The New York Civil Liberties Union and its national counterpart, the ACLU, filed a friend-of-the-court brief Thursday to oppose the Manhattan District Attorney’s 2013 search warrants forcing Facebook to turn over contents of 381 user accounts as part of a Social Security fraud investigation.

The district attorney’s office secured the warrants from the New York County Supreme Court in July 2013, requesting the users’ private messages, chat histories, photos and other profile information. The court also issued a gag order prohibiting Facebook from notifying the users that their profiles were being searched.