How to assign users to companies automatically
Auto-assign Users with just one click
Go to Settings -> App settings
Next, go to Companies -> Auto assign users to companies.
Toggle Enable (as in the screenshot below) and click Save. Now, users with the same email address domain will be assigned to the same company.