Sample: Server operation access

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 role.
See Deploying extensions to learn how to deploy the extension to your server.

How to use

See How to use ArcGIS samples for help on running the sample.

Data has been provided for your use with this sample. It can be found at <Your ArcGIS Developer Kit Install directory>/Samples/data/arcobjects/serverobjectinterceptors/OperationAccessSOI.

  1. Define at least two new custom roles in you ArcGIS Server site called "gold" and "platinum".
  2. Associate one or more users to those two roles, as well as other roles.
  3. Deploy OperationAccessSOI.soe to your server.
  4. Attach the SOI to a map service of your choice.
  5. Optionally, secure the service.
  6. 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 roles.

If you installed the samples feature, you will find the files associated with this sample in <Your Developer Kit install location>\DeveloperKit10.4\Java\Samples\ArcObjects.

soi/ The OperationAccessSOI Java Server Object Interceptor Extension class.
lib/OperationAccessSOI.soe The deployable SOE file.