TRENTON, N.J. (CBSNewYork) — A New Jersey appeals court has upheld the state attorney general’s authority to order the release of police disciplinary files.

Attorney General Gurbir Grewal issued orders in June requiring law enforcement agencies to identify officers who were fired or suspended due to disciplinary violation.

READ MORE: FBI Executes Search Warrant At Home Of Gabby Petito's Fiancé Brian Laundrie

RELATED STORY: NYPD Disciplinary Records Going Back 35 Years Now Available Online

Police unions sued, arguing Grewal did not have the authority to release the files, dating back 20 years.

READ MORE: Yonkers Police: 2 Men Dead After One Jumps Off Building And Hits The Other 12 Stories Below

The judge ruled the attorney general has the authority but said officers can still challenge the release of their names.

MORE FROM CBS NEW YORK:

MORE NEWS: New York City Public Schools To Increase COVID Testing, Relax Quarantine Rules

You can get the latest news, sports and weather on our brand new CBS New York app. Download here.