They are required to give you their name and/or serial number. But only if not working plainclothes where it would jeopardize an investigation. I do know that many officers take being asked for their “”badge number”” as a threat and that you are going to accuse them of misconduct.