It seems that you're using an outdated browser. Some things may not work as they should (or don't work at all).
We suggest you upgrade newer and better browser like: Chrome, Firefox, Internet Explorer or Opera

×
"ID Badge - Optional key from the Prison Guard, drops upon his death. Gives access to Warden Montag. Speaking to the guard will also open the locked door automatically."

From Doom wiki, however the dialogue with Warden doesn't change if you kill the guard and take the ID badge first (nor if you use it on the switch next to him).