In recent years, political philosophers have hotly debated whether ordinary citizens have a general pro tanto moral obligation to follow the law. Contemporary philosophers have had less to say about the same question when applied to public officials. In this paper, I consider the latter question in the morally complex context of criminal justice. I argue that criminal justice officials have no general pro tanto moral obligation to adhere to the legal dictates and lawful rules of their offices. My claim diverges not only from the commonsense view about such officials, but also from the positions standardly taken in legal theory and political science debates, which presume there is some general obligation that must arise from legal norms and be reconciled with political realities. I defend my claim by highlighting the conceptual gap between the rigid, generalised, codified rules that define a criminal justice office and the special moral responsibilities of the various moral roles that may underpin that office (such as guard, guardian, healer, educator, mediator, counsellor, advocate, and carer). After addressing four objections to my view, I consider specific contexts in which criminal justice officials are obligated not to adhere to the demands of their offices. Amongst other things, the arguments advanced in this paper raise questions about both the distribution of formal discretion in the criminal justice system and the normative validity of some of the offices that presently exist in criminal justice systems.