Hi @Unschuur,
Create two view layers from your master layer. View A shared only with group A and View B shared only with group B.
Duplicate your survey. Make survey A submit to View layer A. Make survey B submit to survey B (in submission URL in setting sheet in xlsf).
On AGOL, in the view layer 'Visualization' page, determine which fields are viewable for each view layer:
Give survey A to group A and survey B to group B.
Whatever they submit will end up in your master layer for you/administrator to view and edit, but they will only be able to see what's on their view layer.
Hope this helps,
Uri
If this answer solved your question or if you found it helpful please mark it accordingly to help others who have the same question.