How are users mapped to their company?

Usually, tickets are conversations between users and agents, but in reality, their company is our real client. Users can be grouped under a company to monitor the activity as a whole.

Users are automatically added to a company with the email domain mapping.