During the reign of his half-brother Harun al-Rashid (r. 786–809), Ubaydallah was appointed as governor of Arminiyah and the northwestern provinces in 788/9, succeeding Yazid ibn Mazyad al-Shaybani.[3] He was later appointed to two brief stints as governor of Egypt, in 795 and 796.[4]