Barney was in charge of a band on a human colony secretly ruled by Macra.
He was also the supervisor of the Refreshing Department and guided the Second Doctor and his companions through the facilities there. He had been hypnotised into willingly working for the Macra. (TV: The Macra Terror)