To work in Iran as a foreigner, you need to get a work permit visa for long period and business visa for short business trips like events and conferences.