Mendiratta was appointed Secretary (Legal Affairs), heading the Department of Legal Affairs in the Ministry of Law and Justice, on deputation from the judicial service, by the Appointments Committee of the Cabinet, on the advice of a search-cum-selection committee, which interviewed more than 60people for the job.