Is it possible to share a hosted feature service publicly but allow edits only for specific named users?

2201
8
Jump to solution
02-24-2016 04:01 AM
XanderBakker
Esri Esteemed Contributor

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?

0 Kudos
1 Solution

Accepted Solutions
KyleBalke__GISP
Occasional Contributor III

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.

Manage hosted web layers—ArcGIS Online Help | ArcGIS

View solution in original post

8 Replies
VenusScott
Occasional Contributor III

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.

0 Kudos
VenusScott
Occasional Contributor III

We don't host on AGOL...we keep all our data on our own databases and servers.

0 Kudos
XanderBakker
Esri Esteemed Contributor

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.

0 Kudos
KyleBalke__GISP
Occasional Contributor III

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.

Manage hosted web layers—ArcGIS Online Help | ArcGIS

View solution in original post

XanderBakker
Esri Esteemed Contributor

Hi Kyle Balke, GISP , that sounds exactly what we are looking for. Thank you for sharing!

XuehanJing
New Contributor III

Hi Xander,

Try configure custom role for different user, and assign the role accordingly.

Organization roles—ArcGIS Online Help | ArcGIS

0 Kudos
XanderBakker
Esri Esteemed Contributor

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):

Restrict editing of public layers

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.

XanderBakker
Esri Esteemed Contributor

Confirmed, we tested the procedure and the answer provided by Kyle Balke, GISP is working perfectly. Thanks again!