Adding users to a group automatically after login using a PAS plugin

hvelarde: did you see this? https://pypi.python.org/pypi/Products.AutoRoleFromHostHeader
https://github.com/RedTurtle/Products.AutoRoleFromHostHeader

"Add roles or groups to anonymous or logged-in visitors based on HTTP headers" Seems quite closer to what you need. Works with Plone 4.