Some information, such as a health status, must only be seen by supervisors. How do we set that? And how do we split rights in the administration space?
In the field: roles and field permissions
- Each agent has a role in the project (agent, supervisor…), which gives them permissions: create a subject type, edit a report, see missions…
- The project can define its own permissions (for example “see HIV status”) and grant them to the roles it chooses.
- On a form, subject or place field, you set which permissions allow seeing it and which allow editing it. An agent without these permissions does not see the field, or sees it without being able to change it.
- These permissions also work in the project’s rules (missions, indicators).
- In the admin, a field protected by a permission is marked on the form.
In the administration space: administrator roles
An administration member has one or more roles:
- Developer: the project definition (drafts, prompt, studio, Git, deployment);
- Implementer: the people, places, data and phones of a deployed project;
- Data analyst: visualizations, dashboards, reading reports.
A role’s rights can be added or removed member by member. The Admin role has every right.