Is there a way to link active directory users to feature services?

2278
3
11-03-2014 03:00 PM
GeoffreyWest
Occasional Contributor III

I have a feature service with apply edits capabilities enabled; is it possible to create an active directory with users and whenever a user makes a change in the feature service link that change to the database.

This is akin to an ArcGIS Online web-map; where if a user makes a change to a feature service; the created user is recorded into the DB.

I am however using ArcGIS JavaScript API.

0 Kudos
3 Replies
JakeSkinner
Esri Esteemed Contributor

Hi Geoffrey,

This is possible.  First, you will want to enable Editor Tracking on the feature class.  After editor tracking is enabled, you can publish the feature class as a feature service.  You will then want to configure your ArcGIS Server instance to use Windows Authentication‌ and then secure the web service.  When a user accesses the web application, they will be prompted for their Windows Credentials, and their edits will be tracked while editing.

GeoffreyWest
Occasional Contributor III

Hi Jake,

Thanks for your response, how does this work with mobile devices? Say if a public user edits a feature (submits request) how is this stored?  Also if there is a Collector application working in parallel with the JS application, can this feature class maintain two creator fields? One in collector with the organizational user, and one that is public.

0 Kudos
JakeSkinner
Esri Esteemed Contributor

In order for a public user to edit a secure feature service, they would need to know the username/password to access the service.  You optionally can register the service with ArcGIS Online by going to Add Item > On the web.  When you specify the REST URL to a secure service, you will be prompted to store the credentials with the service, or have the users be prompted:

screen1.png

Whether the user is prompted for the username/password, or it's stored with the service, that is the user that will be recorded when a feature is created/updated, regardless of what ArcGIS Online user account they are using.  The same holds true when using Collector.

0 Kudos