He was in private practice in Lusk from 1949 to 1967, serving as a prosecuting attorney in Lusk from 1951 to 1962, and as a town attorney from 1954 to 1956. He was secretary-treasurer of Niobrara County Republican Central Committee from 1950 to 1966, and the attorney for the Niobrara Consolidated School District from 1952 to 1962. He became the Wyoming Attorney General from 1967 to 1971.[1]
Federal judicial service
On March 25, 1971, Barrett was nominated by President Richard Nixon to a seat on the United States Court of Appeals for the Tenth Circuit vacated by Judge Joe Hickey.[2] Barrett was confirmed by the United States Senate on April 21, 1971, and received his commission on April 23, 1971. He served as a Judge of the United States Foreign Intelligence Surveillance Court of Review from May 19, 1979, to May 18, 1984. Barrett had a reputation as a staunch conservative and dissented when the Court found that an Oklahoma law banning teachers from publicly supporting gay rights was unconstitutional. Barret called homosexual conduct “unnatural and detestable” and said that advocacy of it was less deserving of Constitutional protection than “advocacy of violence, sabotage, and terrorism.”[3] He assumed senior status on April 8, 1987, serving in that status until his death.[1]