Updated November 7, 2017
The way to do this is to create a hosted feature layer view. Learn more about hosted feature layer views here...Create hosted feature layer views—ArcGIS Online Help | ArcGIS
-------------------------
Original post
There are several options:
Hope this helps,
Mike
... make the User the owner of the hosted feature layer.
You can't solve this problem through groups or user security settings. I have been able to find the REST endpoints on any feature service that belongs to a public map, regardless of whether or not the editing has been disabled in the map. Once in the REST services you can apply edits using the REST API.
***DISABLING EDITING IN PUBLIC MAPS DOES NOT MAKE YOUR FEATURE SERVICE SAFE!!***
There is an option to disable editing on layers inside a web map. This option is meant primarily for layers, such as shapefiles, that have been uploaded and stored directly in the map (and not as an item in my content). Lindsey, you are correct in saying that if you have a hosted feature layer and editing is enabled on it, disabling it with the option inside the map will only prevent edits from within that particular map. If you add the layer to another map, it would be editable. In order to disable editing on a feature layer, you have to do it from the item itself, by editing the item details of the feature layer. Then it will not be editable via a map or programmatically via REST calls.
The current solution in a pure hosted environment is to create a matching tile layer published with your feature layer. This is not an optimal solution because the tiles will quickly become out of date as edits are made, and you will need to recreate the tiles. We are currently working to better support this scenario in the hosted environment, where organizations want public access to view the layer, but limited editing access.
If you have your own ArcGIS Server, you can publish a map service with features access enabled. The public map would reference the map service, while those that need editing would access the features.
Thanks,
Mike, none of those solutions solve the problem.
I have a Winter road condition map as the snow plow drivers clear portions of the road he radios in his progress the lines are then updated. There are 30 to 50 drivers plowing the highways each calling in their progress the data is changing constantly a tiled map to go along with an editable feature services is not realistic.
The reason a lot of users want to use the hosted feature service is because they don't have access to ArcGIS Server. If they did they probably would not NEED ArcGIS Online for Organizations.
I brought this problem up to ESRI staff at the last three User conferences and to the staff of the Minneapolis office many times. It is the ONE thing holding us back from using ArcGIS online.
I could not believe it when I heard the following at this years User Conference:
They need to read this thread.
There is one other option that may or may not be viable for you. A hosted feature layer can have editing disabled, but any administrator in the organization can open the layer with full editing control from the item page of the feature layer (open button). I haven't set this up myself, but you can create a custom role in the organization with limited administrative privileges, which would allow the editors to edit the data, but not, for example, delete other members of the organization. With the fact that the feature layer effectively has editing disabled, any viewing of the layer by non administrators and the public will not allow editing.
We do hear what you're asking for. It is a project under active development.
Thanks for your patience.
Here is a brief explanation. For now Full Editing Control is the best option for Public Maps, in my opinion. More best practices from this link: Best practices for using layers in maps—ArcGIS Online Help | ArcGIS
"Control who can update your data
If you want everyone who has access to the hosted feature layer to be able to update the data, enable editing and choose the type of edits you want others to make. For example, you can restrict editing to adding features only or updating existing features only. You can also allow everyone to add, update, and delete features. Be aware that if your hosted feature layer is shared publicly with editing enabled, the general public will be able to edit the data.
As the owner of the features stored in the map, you can perform edits within the map viewer using the editing tools that come with the map viewer. When working with a hosted feature layer, the owner of the features and any administrator of the organization can also choose to open the layer with full editing control even if editing is disabled. (To open the layer with full editing control even if editing is disabled, open the item details, click Open and choose Add layer to new map with editing enabled from the drop-down list. You can also choose this option from the item title drop-down in My Content). This will ensure that only authorized or trusted members of the organization, such as you the map owner and administrators, can edit your data."
Andrew Stauffer Andrew Stauffer Any update to this issue or more resources related to the topic?
Although Shawn Kraft originally penned the technique back in April 2014, some official Best Practices documentation finally arrived in the link above which highlights his process to limit undesired public editing of feature services.
I think this documentation should give you the functionality you want. It details how to limit access to public ArcGIS Online layers!
I have tried this documentation and it worked for a Collector workflow where the public can see the layer in a map and organizational users can edit the layer. The problem I had with this process is when the public layer is incorporated into Web AppBuilder and I tried printing with the public layer turned on, I would get an printer error message (see this thread).
Ah I see you shared this already in the thread above - I didn't notice it.
I was thinking more along the lines of using it in an app like Crowdsource Manager or Geoform where you didn't want users to see records added by other users. The limit usage part of this as you have come across causes problems with printing.
This scenario is now supported with the latest update to ArcGIS Online. Learn more about hosted feature layer views here...Create hosted feature layer views—ArcGIS Online Help | ArcGIS
At last - A proper solution in the right direction
Mike, am I missing something? There are all sorts of ways to restrict what an anonymous user may or may not do now. But there still is not a way, at least that I can see, that you can let your signed in "allowed to edit users" to add new features without allowing anonymous users to do the same. Why can't there just be a simple choice like Only users of this group are allowed to edit"? See below If I want my editors to be able to add, update or delete, then my only choice is that the anonymous editors can only add new features (see last line of options). I don't want THEM to be able to do any type of updating period.
• What kind of editing is allowed?
Tracy Garrison
Hosted feature layer views (view layers) provide the ability you want. Effectively, you are creating a copy of the layer that points to the same data source. This is analogous to how layers work in ArcMap, for example. In this case, the view layer doesn't contain the data, but references it. The link to Help I provided in my previous post explains what view layers are.
We could have implemented editing controls on the layer, the way you're describing above, as another editing property. But view layers allow you to do that and much more. For example, with a view layer, not only can you disable editing of the data, but you can change how the layer is drawn or the popup information displayed. The layer can be fully configured for a different audience.
Hope this makes sense.
Are there any tutorials or samples that would show how to set up views? Thanks.
Mike, Thank you. I knew I had to be overlooking something.
@MikeMinami
This is an old thread but unfortunatly it seems the problem hasn't been solved.
As you described Hosted feature layer views is nice and gives more configuration possiblilities. But this shouldn't prevent implementation of editing controls on the layer where we could rectrict who is allowed to edit the layer. This would be much easier and quicker to configures . Hosted feature layer views is way more work to create, configure and manage.
It is amazing that in 2025 it is not possible to simply resctrict the capability to edit a layer to user with editable rights, in a public map.
Aangemelde leden kunnen berichten plaatsen, updates volgen en meer. Nieuw hier? Registreer een gratis account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.