The union representing rank and file police officers sought to block the NYPDs planned release of redacted information on disciplinary proceedings Wednesday, arguing it would place cops lives in danger.

The lawsuit filed by the Patrolmens Benevolent Association came in response to a move by Police Commissioner James ONeill to post summaries of allegations and how cops were penalized, without mentioning the members by name.

The departments policy about-face was first reported by the Daily News last month.

In its suit, the PBA argues the change violates Section 50-a of the 1976 state civil rights law, which they say bars the release of such records.

PBA rips de Blasio administration’s contract offers

The city and NYPD now seek to eviscerate the civil rights of police officers and supplant their judgment for that of the duly elected Legislature, the PBA wrote.

Nobody should be OK with Respondents Orwellian approach to privacy rights.

The city has previously said it cannot release police disciplinary records due to 50-a.

The News has recently reported on the secrecy surrounding NYPD disciplinary proceedings, which are often resolved in opaque settings.

NYPD should name cops who shot, killed mentally ill man: LAS

First Deputy Commissioner Benjamin Tucker previously told The News the new policy does in fact comply with the law.

We have spent some time looking at each of those cases and have decided to look at ways in which we can provide more detailed information within the boundaries of what 50-a requires, Tucker said.

The PBA says the first redacted disciplinary case could be released as soon as Monday.

The union seeks an emergency order blocking the release of such information.