Ubaidullah first job was working as an aide to Prince Jalaluddin, the grandson of Tipu Sultan of Mysore, in Kolkata. After which he worked as the Scrivener at the Legislative Council, part of the office of the Viceroy of India. In 1865, he joined the Hooghly Mohsin College and taught Anglo-Arabic.