 He served there as second and first secretary until 1988.In 1991-1992 he was the Director of the State Protocol Division.In 1992-1995, Mammadyarov worked in the Permanent Mission of Azerbaijan to the United Nations in New York.