A man who tried to pass himself off as an FBI agent in the North Dakota oil patch says he will plead guilty to an illegal weapons charge.

Steven Goldmann is charged in federal court with six counts, including four counts of impersonating an officer. Investigators say he regularly displayed a gun, holster, mace and badge, and showed up one day at a Williston coffee shop with a passenger who was handcuffed.

Under the plea agreement, Goldmann would plead guilty to possession of a firearm and ammunition by a convicted felon. The remaining five charges would be dropped.

Goldmann had pleaded guilty to a theft of services charge in Tennessee in 2013. He was accused of swindling several Nashville businesses out of tens of thousands of dollars.