 At various times during his career, Abdirahman served as the chief of the magistrates court of Mogadishu, Attorney General, the commissioner of Sanaag region, and the chief of the appeals court of Mudug region.Abdirahman's judicial career was noticed by President Siad Barre, the leader of the country's military junta.In January 1989 he was serving as Attorney General.