The General Retirement and Social Insurance Authority (GRSIA) provides this service to businesses and government entities to inquire about opened and closed contribution months, with the ability to export their details to an excel sheet.
Registration and Contributors Services Section at GRSIA headquarters (Check Google Maps).
No fees are required for this service.