I need to restrict a user account to submissions matching two attributes at once — a specific district and a specific institution. Both are ordinary select_one questions in the form.
In Sharing → “View submissions based on a condition”, the editor accepts only one question and one value. Entering an expression such as (District = 'X') and (Institution = 'Y') into the value box has no effect, since the box is matched literally against the stored response rather than evaluated. The documentation confirms the single-condition limit and suggests adding a calculate field to the form as a workaround.
Two questions:
1. Is there another way to do this without changing the form? The partial_permissions filters appear to be passed to the backend as query objects. Is it possible to supply a filter containing two fields via /api/v2/assets/<uid>/permission-assignments/, and would those be ANDed? If the backend already supports it, the limitation would be in the interface only — which would be good news, since it means no form change is needed.
2. Could the interface be extended to allow more than one condition, with an AND/OR choice between them?
Why this matters: the pattern is common in multi-site monitoring. Several institutions operate in the same district, and the same institution type appears across several districts, so neither attribute alone identifies the right subset. Each institution’s focal point should see only their own records.
The calculate workaround has two real costs. It only covers submissions made after the redeploy, so historical data has no value for the field and becomes invisible to the restricted user. And it means editing and redeploying a live form purely to express an access-control rule, which puts the logic in the wrong layer — the form is about what you collect, not about who may read it.
Server: EU (eu.kobotoolbox.org). Form built from using KoBo Form.
