How to add users to any specific group in django?

I am new in django. Assume I have an website and I need to be manage different kind of user such as customer, admin, sales manager, support representative etc. How to add those user to any specific group. I want my all customer will be added in coustomer group, all admin will be added in admin group, all sales manager will be added in sales manager group. How to do that in Django? I didn’t find any documentation on this topic.

The User table has a ManyToMany relationship with the Group table. You assign users to groups the same way you establish the connection between any two tables in that type of relationship.

See the example at Using the Django authentication system | Django documentation | Django

1 Like