Companies are setup under:
Admin > Companies
Companies are configured in a hierarchy, with each company in the tree having a parent company.
The top-most company (typically the account holder) is the only company that does not have a parent.
This dictates the access of files within the structure. This allows you to create Affiliates of Affiliates.
The Main Company can see the records of all companies including its own and that of those below it.
Affiliate A can see their own data, Sub Affiliate AA's data and Sub Affiliate AB's data.
Sub Affiliate Company AA can see their own data only.
Sub Affiliate Company AB can see their own data.
Sub Affiliate Company B can see their own data only.
This is done by selecting the "Parent Company" while editing or adding a company.
The "Parent Company" of Affiliate A is the Main Company.
The "Parent Company" of Sub Affiliate AA is Affiliate A.
You can see what company belongs to what from the company listings page.