At a client we have the following use case:
A client wants to share its offices to the public to enable them to find the nearest office and consult the address and opening hours. The offices are points stored in a hosted feature service (HFS) on ArcGIS Online and are shared to the public in a web map on the company site using an iframe.
At the same time there is a person in charge of maintaining the office locations and opening hours. The idea is to do this through a web app loading the HFS with edit capabilities. The simple app allows to add new and delete or update existing offices.
Since the data is shared publicly, anonymous users (or users outside the organization) can add the HFS to a web map and activate editing. Is there some way to share a HFS publicly, but restrict editing to specific named users only?
Solved! Go to Solution.
Xander
This is possible with just one hosted feature layer...please see the section entitled "Restrict editing of public layers" from the help page linked below.
If I understand you correctly... you would need to create two services from the same data source. One being a "feature service" for editing and one being a "map service" for viewing.
We don't host on AGOL...we keep all our data on our own databases and servers.
That sounds like the way you would publish data in your local ArcGIS for Server and not on AGOL. Our servers are not exposed outside the company network and will not be exposed soon.
Xander
This is possible with just one hosted feature layer...please see the section entitled "Restrict editing of public layers" from the help page linked below.
Hi Kyle Balke, GISP , that sounds exactly what we are looking for. Thank you for sharing!
Hi Xander,
Try configure custom role for different user, and assign the role accordingly.
Hi Xuehan Jing , I don't think we need a custom role, since a normal user will do. The link mentioned by Kyle Balke, GISP explains the following (which is what we need):
Sometimes, you need to make a hosted feature layer available to the public for viewing, but you only want a few members of your organization to edit it. If you enabled editing on a public hosted feature layer, anyone could edit it. Instead, share the hosted feature layer with a group that an Esri-defined Administrator created and configured to allow editing of all contents. Add or invite organization members to this group who you want to edit items. All items shared to this group can be updated by group members, including hosted feature layers that do not have editing enabled.
When members need to edit the hosted feature layer, they open the hosted feature layer's details and click Open > Add layer to new map with full editing control.
We are testing this configuration at this momento and I will post back the results.
Confirmed, we tested the procedure and the answer provided by Kyle Balke, GISP is working perfectly. Thanks again!