Outsourcing in saudi

I want to ask that whether outsourcing is legal according to nitaqat law in Saudia. I have been offered a job in Riyadh but the company has some visa issues so it is outsourcing me that is my sponsor will be different company and I will work in different but there will be a contract between the two companies. So should I join or there will be any problem

Thx for your reply so it means that it's ok if your sponsor is a company it should not be individual sponsor like in azad visas.