As a Moodle admin first of all you have to create a company. Then when you create a course then check for the self enrollment, select the Manual enrollment process.
Now create a user and assign it to a company as a company manager and to the course which is assigned to that company.
The company manager could not be able to see the courses of another company. I am using it and its working fine for me.