Roles and permissions

The default groups and permissions for Django is used.

The default groups and their permissions are in the src/users/fixtures/groups.json fixture.

Roles/Groups

  • CLUSTER_LEAD (This group is used as permission template. Do not assign this to users)
  • ORG_LEAD
  • ORG_USER
  • iMMAP_IMO

Each clusters have their own group with BASE_CLUSTER_LEAD group permission. Ex:

  • WASH_CLUSTER_LEADS
  • ESNFI_CLUSTER_LEADS
  • ...
  • ...

Create group for each cluster and add base permissions

If new permission are added to BASE_CLUSTER_LEAD groups, run the below command to update all cluster leads groups.

python src/manage.py create_cluster_groups

Permission

Default django model permission and custom ones (check models).

Seed Default Groups

python src/manage.py loaddata groups.json

Note

  • when a cluster is created, the base groups are applied via post save signal

Powered by Doctave