opensrp / miecd

0 stars 0 forks source link

Roles mapping #62

Open peterMuriuki opened 3 years ago

peterMuriuki commented 3 years ago

This issues describes the roles and user groups supported by default, these groups determine what modules a logged in user can interact with on the web.

Roles:

  1. MODIFY_USERS - users can access the admin.users module
  2. MODIFY_TEAMS - users can access the admin.teams module
  3. MODIFY_LOCATIONS - users can access the admin.locations module,
  4. MODIFY_NBC_PNC - users can access the nbcPnc module
  5. MODIFY_NUTRITION - user can access the nutrition module
  6. MODIFY_PREGNANCY - user can access the pregnancy module

A list of the initial groups with their associated roles:

  1. Pregnancy : MODIFY_PREGNANCY
  2. NbcPnc : MODIFY_NBC_PNC
  3. Nutrition : MODIFY_NUTRITION
  4. Provider : composite that includes all of above three
  5. Supervisor: composite that includes provider's roles + MODIFY_TEAMS, MODIFY_LOCATIONS
  6. super User: composite including supervisor's roles + MODIFY_USERS

This is just the initial list and more user groups with different access level mappings can be created from the web