Select to view content in your preferred language

Geofence individual editors (or groups) in a multi editor environment.

386
1
10-27-2023 08:55 AM
Status: Open
GeordonHarvey
Emerging Contributor

I would like to have a hosted feature layer with multiple editors, but limit each editor (or group of editors) to a defined geographical area (geofence polygon).

1 Comment
GlenShepherd

Hi @GeordonHarvey 

I think you could configure something like this using Arcade.  For a simple editing Geofence, I've written a blog you can find here: https://community.esri.com/t5/arcgis-field-maps-blog/configure-an-editing-geofence-in-your-form-usin...

The next challenge would be to take it a step further and incorporate the GetUser function.

For example, you could do something like this:

\\ Sarah Smith needs to work at Property1

var mobileWorker = GetUser($layer).fullName
var areaName = FeatureSetByName($map, 'Property Boundaries', ['PropertyName'])
var areaLocation = First(Intersects($feature, areaName))

if (mobileWorker = 'Sarah Smith' && areaLocation = 'Property1') {
  return true
} else {
  return false
}