a person who performs certain actions under legal authority, in particular.
North American:
an official in a court of law who keeps order, looks after prisoners, etc.
British:
a sheriff's officer who executes writs and processes and carries out distraints and arrests.
It would seem that just by that definition, they serve a purpose. Are we looking at different definitions, perhaps