Regarding APP Distribution

Let me explain the scenario


I am currently working for company X and making an iOS app for them. The employees of the company need access to the app.


However, there is another company Y and its employees also need access to our app. (Not the public but the employees of company Y).

How and which developer account should I use. Is this enterprise? If later I want to add employees of company Z what do I do?