A law enforcement officer (also called peace officer), in North America, is any public-sector employee or agent charged with upholding the peace, mainly police officers, correctional officers, customs officers, immigration officers, court officers, probation officers, parole officers, auxiliary officers, and sheriffs, marshals, and their deputies. A security guard is not normally a law enforcement officer.
Modern legal codes use the term peace officer (or in some jurisdictions, law enforcement officer) to include every person vested by the legislating state with law-enforcement authority—traditionally, anyone "sworn, badged, and armable" but, basically, who can arrest, or refer such arrest for a criminal prosecution. Hence, city police officers, county sheriffs' deputies, and state troopers are usually vested with the same authority within a given jurisdiction.
which one are you ?