I’m to make a web app that will implement something like user hierarchy. I would like to do it like this:
1. Superuser makes users (with some permissions), who can also add users (only with permissions which they own). This users can also add users, and so on. No one should be able to edit users who have more permissions.
The thing is that I want to make Django Admin Panel avaliable for all of these users. Is it even possible to make such thing? I’ve searched the web and didn’t find solution. Thanks for advice.
You’ll need to create your own views for adding users if you want to control the created users’ permissions. On the Django admin site, any user that can create users can create superusers.
From the Django docs on creating users: