Skip to content

The ArcGIS Enterprise SDK includes several service interceptor samples that demonstrate various use cases and functionalities. These samples serve as practical examples to help developers understand how to implement and utilize service interceptors effectively within their applications. The available service interceptor samples include:

  • Audit Log Interceptor: This sample demonstrates how you can intercept any REST-based service,such as MapServer, FeatureServer, KnowledgeGraph, etc. published within ArcGIS Enterprise or stand-alone ArcGIS Server environment. This sample intercepts incoming requests and logs relevant information, including the username of the individual accessing the services, the service name, the service type, and any operations performed by the user on the service.
  • Chaining Interceptors: This sample demonstrates how multiple service interceptors interact with a hosted feature service. Each interceptor performs a unique task in the chain, separating the logic into manageable units.
  • Incident Management: This sample demonstrates how to intercept responses from a hosted feature service. The incident management interceptor detects outgoing responses for add and query operations, applies value enrichment to designated fields, and forwards the modified response back to the client. Both PBF and JSON response formats are supported.
  • Access Control Interceptor: This sample demonstrates fine-grained, per-user access control for a hosted feature service. The interceptor identifies the requesting user and returns only the features assigned to the user.

Explore these samples to gain insights into the capabilities of service interceptors and how they can be used to meet specific requirements.

Your browser is no longer supported. Please upgrade your browser for the best experience. See our browser deprecation post for more details.