Dear Survey123 community,
Is there any way at all to disable attachments from a feature layer view?
I’d like to make a road closure map for the public from data we receive from consultants regarding road closure applications. These applications comprise of information regarding road closures and engineering drawings (with IP attached to it).
So, I’d like to make a feature layer view of these applications, with sensitive info and all Attachments removed before sharing it with the public.
I have successfully managed to disable all sensitive fields. But, I’m having trouble hiding attachments.
Is there any way to get around this?
Stefano is showing the attribute access in the pop-up configuration; this is probably sufficient for most casual interaction with the data via a web map-based application, though someone with knowledge of the ArcGIS REST API would still be able to access the attachments.
As per ArcGIS Online's documentation (Manage hosted feature layers—ArcGIS Online Help | ArcGIS ), you cannot disable access to attachments; in the current context disabling attachments disables the functionality entirely and removes the features.
Another way to implement this would be to create a new feature service for display that lacks attachments (and other fields you don't want the public to view) and periodically update from the incoming source.
According to the resource you hyperlinked, you can hide attachments in feature layer views (see section called "Hide attachments in views". Not sure if this changed since you wrote the reply in 2018...Do you still believe it to be the case that someone with knowledge of the rest api could still access the attachments?