Default behaviour seems to be new users have no permissions and no groups. However I'd like not to have to manually grant every single new users basic permissions, and I'd assume they'd like not to have to wait for me to do so.
How should I assign default permissions for new users?
Some similar questions have been asked but with no clear answer for the general case:
- Django default user permissions
- How do I define default permissions for users in Django Guardian?
- Django Assign-perm w/ Post-Save Signal
I'm using python-social-auth
so I don't have my own create-user form and view which I guess is where everyone else sets default permissions. I assume I need an on-user-create hook of some sort but not sure what the cleanest approach is.
This is unrelated to creating the default possible permissions that may be granted to users, although for reference,
sender=settings.AUTH_USER_MODEL
. I also usedgroup, group_created = Group.objects.get_or_create(name='Default')
. – Periotic