-
-
Notifications
You must be signed in to change notification settings - Fork 73
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[docs] Explain default permission groups (Admnistrator and Operator) #380
Comments
During my onboarding to OpenWISP I wrote down a few User definitions that might be added to the documentation too. I found them specially useful when trying to reproduce bugs following instructions. Please review Django admin/superuser User.objects.create_user(is_staff=True, is_superuser=True)
# or User.objects.create_superuser() Django staff user User.objects.create_user(is_staff=True) OpenWISP user User.objects.create_user() # Belongs to 'default' organization OpenWISP operator User.objects.create_user(is_staff=True)
OrganizationUser(is_admin=False)) # Belongs to 'default' organization OpenWISP operator for ABC organization User.objects.create_user(is_staff=True)
OrganizationUser(is_admin=False, organization=abc_org)) OpenWISP admin for ABC organization User.objects.create_user(is_staff=True)
OrganizationUser(is_admin=True, organization=abc_org)) |
Thank you Pablo, a few clarifications below.
I don't think a user created this way will belong to the default org, it will not belong to any org.
Should be something like: operator_group = Group.objects.get ... # query to get the operator group
user.groups.add(operator_group)
OrganizationUser.objects.create(is_admin=True, user=user, organization=organization) Needs
Same here.
the Administrator group needs to be assigned, the user must be passed to |
We have some basic information about this in the openwisp-users module README. |
Now that we're finally moving forward with openwisp/openwisp-docs#107 I am moving this issue to the openwisp-users module, I will add the explanation there. |
Closed by #381 |
Document what will be discussed and decided on this mailing list discussion:
Default permisions: administrators and operators
Related to:
The text was updated successfully, but these errors were encountered: