He did a difficult job, and obviously he did it well. However, I heard that he did do things that undercover agents shouldn't do, although I can't personally confirm those claims. Though it does stand to reason that for the length of time he was undercover, he had to do some things that were probably against FBI rules. But in the end, results are what the FBI wants and even if he did break some protocol he sent a lot of bad guys to prison.