ArcGIS Enterprise SDK
Operation Access SOI (ArcGIS Enterprise SDK)
ArcGIS Enterprise SDK Developer Help > Developing Extensions with ArcGIS Enterprise SDK > Developing with .NET > .NET Samples > Operation Access SOI (ArcGIS Enterprise SDK)

Operation Access SOI Sample

This sample illustrates how to filter access to individual operations available on the map server. Three operations – "find", "identify", and "export" – are checked against the incoming request’s user’s name.
The instructions below assume that you have installed the ArcGIS Enterprise SDK on the machine running ArcGIS Server Manager. If you installed the ArcGIS Enterprise SDK on some other machine, you'll need to copy the .soe file to the machine running Manager, or otherwise make the .soe file visible to Manager by placing it in a shared folder.

Deploy the SOI

  1. Open the project “NetOperationAccessSOI” in Visual Studio.
  2. Build the project. This creates an .soe file "NetOperationAccessSOI_ent.soe" in project build output directory.
  3. Log in to ArcGIS Server Manager and click Site.
  4. Click Extensions.
  5. Click Add Extension.
  6. Click Browse and navigate to the .soe file "NetOperationAccessSOI_ent.soe" (created in step 2).
  7. Click OK.

Enable the SOI on a map service

  1. Make sure you have published the “USA” map service using ArcGIS Pro.
  2. On the Services tab of Manager, select the “USA” map service and select Capabilities. In the list of available capabilities, find "DotNet Operation Access SOI Example" and add it to “Enabled Interceptors”.
  3. Click the Save and Restart button to restart the service.
  4. Create users "gold" and "platinum inside ArcGIS server site or ArcGIS Portal.

Test SOI

  1. Disable the Representational State Transfer (REST) cache of your Services Directory. Log in to, http://<serverdomain>/<webadaptorname>/admin. Go to services, select the “USA” map service and edit the service to add the following property in the map service section:
    "disableCaching": "true",
  2. Once the service is edited successfully, consume the service using different users such as "gold" or "platinum, in the REST API page of the USA map service.
  3. Observe how the find, identify, and export operations are only available when the request is authenticated and the authenticated user is in either the gold or platinum users.