Differences between law enforcement branches Sheriffs are usually elected by the communities they serve, and their duties ultimately depend on the county they oversee. ... A police officer is a member of a city's law enforcement agency who is sworn in to protect and defend the members of the community.