He represented the UN in different roles after serving as chief legal and constitutional adviser to then president Nelson Mandela from 1994 to 1999.