What is the meaning of Functionary?

A person employed as an official in a bureaucracy (usually corporate or governmental) who holds limited authority and primarily serves to carry out a simple function for which discretion is minimal or not required.

Such a person who is petty, pedantic, short-sighted, uncaring, or counterproductive; sometimes also with implication of being amoral or corrupt.

Source: wiktionary.org