Can we have an ArcGIS Online user submit a Survey123 survey, but not have the ability to edit the Feature Layer?

1478
6
06-08-2021 06:47 PM
BenWan
by
New Contributor III

Hi,

We have a project in place that assigns surveys to ArcGIS online named users. They log in through the mobile app and fill out the survey and submit.

The issue is that now this user can log in through ArcGIS online, find the Feature Layer, and edit the data. Is there a way where we can allow the user to submit surveys to this layer, but not be able to edit the layer itself? I tried messing with the Edit settings but if I stop them from being able to edit the data layer, they aren't able to submit the survey.

6 Replies
jcarlson
MVP Esteemed Contributor

The short answer: no. In order for a service to be editable in S123, it necessarily will be editable elsewhere by users with the same permissions.

There is a way you might get around this!

  1. Turn off editing on the "main" feature layer
  2. Add a field, call it "completed", have it default to "no".
  3. Create a view layer, set its view definition to "completed = 'no'".
    1. Additionally, limit the visible fields in this view layer so that users cannot edit fields that they don't need to.
  4. Give your users editing access to this new view layer
  5. Create the survey to apply edits to the new view layer
  6. Put a hidden question in the survey that simply alters the "completed" field to "yes" upon submission

Once a user submits to this survey, the feature will "drop off" of the view layer, as it no longer meets the view definition criteria. The "completed" features can still be visible via the non-editable layer, but can no longer be edited by your users.

This still doesn't prevent users from simply opening the "editable" view layer somewhere else, but it can at least give you more control over which features are exposed.

- Josh Carlson
Kendall County GIS
BenWan
by
New Contributor III

This is an interesting concept. We sort of have this in place already in that once a user submits a survey, that Status is assigned Complete and drops off their Survey123 app. I will have to explore this "view" layer and see if this works for us. Thanks!

LMedeirosUI
Occasional Contributor

Wouldn't this mean that all new submissions were only being submitted to the "new" view layer? I'm assuming step 5 is accomplished using the submission URL in the Settings tab (within Survey123 Connect). 

This is my thinking (and I'm new to this entire Survey123/ArcGIS system). When you give a group of users the ability to submit to the survey, you share the hosted feature layer with them. If you go into AGOL and remove the group from the share privileges, they can no longer submit to that survey. Would creating a new view (and using that feature layer for the survey's submission URL) put the data in the "new" and "main" feature layers and not copy their edits to the hosted feature layer? If it doesn't put the data in the "main" feature layer then it seems like it would just create another data table with the data and no way to prevent users from editing it.

 

Assuming I'm wrong in my thinking, would this allow multiple submissions by the same user? I'm not sure why the "completed" field is necessary. Couldn't it just (essentially) be a copy of the hosted feature layer, perhaps with fewer fields?

Thanks!

EduardoFernandez1
Esri Contributor

Hi Ben

Membership is assigned a named user type, privilege and role and these capabilities are enabled to that member regardless of which application they are logging into. The Editor, Field Worker and Creator named user types  have feature level editing capabilities 'out of the box' to Essential Apps in ArcGIS Online\Portal for ArcGIS. Unfortunately, there is no application level setting to prohibit access only to ArcGIS Online or only to Survey 123 or to both. This would be a good enhancement idea though and worth submitting in ArcGIS Ideas page of this community.

Thanks Ed

BenWan
by
New Contributor III

For sure, definitely seems like a good enhancement for platform recognition and to have them differentiated. Thanks.

0 Kudos
jcarlson
MVP Esteemed Contributor

Trouble is, under the hood, S123 is just submitting an Apply Edits request, which doesn't have anything "in" it that would differentiate between clients. An enterprising user could submit the whole edit via a URL request. Perhaps that will change with a later version, though.

https://developers.arcgis.com/rest/services-reference/enterprise/apply-edits-feature-service-layer-....

 

- Josh Carlson
Kendall County GIS