Automatically map email domains to groups / permission sets?

its a feature we would accept into core, a quick and dirty solution is to monkey patch the User class in a plugin and wire the logic there after_create