I have been working on a website that will have employee and customer users. All users will be able to register themselves, but I would like the user groups to be defined automatically by the email domain.
For example, the employee uses the address employee@companyname.com, is there any way to get the @companyname.com users to be automatically defined as employees instead of having them lumped in with the customers/subscriber role so they don't have to be manually changed?