The former first minister is to appear before the inquiry into the government’s mishandling of harassment complaints.