Is there a way to disable create and delete for a specific group rather than the whole layer?

646
2
Jump to solution
11-28-2023 01:21 AM
cat206
by
Occasional Contributor

Hi,

I have a hosted feature layer in AGOL collecting tree data, which I need some users to be able to add and delete new features. However, we have some contractors which need to edit this data in Field Maps, but i don't want them to be able to add or delete the features. I can only see I can amend the settings in the layer settings, but not disable these for a specific map for example, does anyone know another way around it?

 

0 Kudos
1 Solution

Accepted Solutions
ChristopherCounsell
MVP Regular Contributor

Best practice - never share the Hosted Feature Layer.

Create Hosted Feature Layer View(s) from your original layer. Turn editing on/off on the View. Add the View to the map. Share the map and View to the group. Repeat as required.

e.g. 

  • My_Layer - not shared
  • My_Layer_View1 created. Editing enabled and added to Map 1. Map 1 and View 1 shared to Group 1.
  • My_Layer_View2 created. Editing disabled and shared to Map 2. Map 2 and View 2 shared to Group 2.

This way you can always control who has access to your data. Views let you filter, turn on editing settings (add, update or delete) and you can even disable editing on select fields.

Sharing the original feature service is not great as you lose all your options. You can't open/close doors to people when everyone is in the room already.

https://doc.arcgis.com/en/arcgis-online/manage-data/create-hosted-views.htm

https://www.esri.com/arcgis-blog/products/data-management/mapping/getting-started-with-hosted-featur...

 

View solution in original post

2 Replies
ChristopherCounsell
MVP Regular Contributor

Best practice - never share the Hosted Feature Layer.

Create Hosted Feature Layer View(s) from your original layer. Turn editing on/off on the View. Add the View to the map. Share the map and View to the group. Repeat as required.

e.g. 

  • My_Layer - not shared
  • My_Layer_View1 created. Editing enabled and added to Map 1. Map 1 and View 1 shared to Group 1.
  • My_Layer_View2 created. Editing disabled and shared to Map 2. Map 2 and View 2 shared to Group 2.

This way you can always control who has access to your data. Views let you filter, turn on editing settings (add, update or delete) and you can even disable editing on select fields.

Sharing the original feature service is not great as you lose all your options. You can't open/close doors to people when everyone is in the room already.

https://doc.arcgis.com/en/arcgis-online/manage-data/create-hosted-views.htm

https://www.esri.com/arcgis-blog/products/data-management/mapping/getting-started-with-hosted-featur...

 

cat206
by
Occasional Contributor

Thank you so much for this! 

0 Kudos