In 1944, Gregg was appointed President of the University of New Brunswick, serving in that position until 1947 when he was elected to Parliament as Liberal member for the York-Sunbury riding.
Defeated in the 1957 election, Gregg went on to become the United Nations representative in Iraq, the UNICEF administrator in Indonesia, and the Canadian High Commissioner in Georgetown, British Guiana.