Sheriff

Sheriff was the title of a law-enforcement official on Earth. The tile had been in use since the middle ages on Earth.

When subjecting the crew of the USS Enterprise (NCC-1701-D} to a recreation of Sherwood Forest, Q assumed the role of the High Sheriff of Nottingham. (TNG episode Q'pid).

Later, Worf and his son Alexander participated in an Ancient West holodeck program. In this program, Worf took on the role of the Sheriff of Deadwood. (TNG episode A Fistful of Datas).