1👍
You could try making a custom adapter & overriding the save_user
method.
Then you can store the group information in the session, and use it in your custom adapter.
from allauth.account.adapter import DefaultAccountAdapter
class MyAdapter(DefaultAccountAdapter):
def save_user(self, request, user, form, commit=True):
user = super(MyAdapter, self).save_user(request, user, form, commit=commit)
# do your custom stuff here
return user
And in your settings, add this
ACCOUNT_ADAPTER = 'myapp.adapter.MyAdapter
Source:stackexchange.com