How do I get the user roles from the ArcGIS Server Manager with a servlet?

732
1
08-14-2012 07:23 AM
MarkusEichhorn
New Contributor II
I am using ArcGIS Server 10.0 SP3 for an FlexViewer-based Web-Mapping-Application.
For some special exercise I want to get the specified roles for an user from the ArcGISServer with an Servlet. In this servet I am using the arcobject 10 library. I am requsting already some other things, for example the legend for specified map services.

This is how I get the ServerConnection and the ServerObjectManager.
  ServletContext context = getServletContext();
  mapServerAdress = context.getInitParameter("MapServerAdress");
  mapServerUser = context.getInitParameter("MapServerUser");
  mapServerPasswd = context.getInitParameter("MapServerPasswd");
 
  try {
   connection = new ServerConnection();
   connection.connect(mapServerAdress);
  }
  IServerObjectManager soManager = connection.getServerObjectManager();

At this point I know already the userName I want to request. Of course I know the admin-user for the Server.

But how do I get the user roles now? I cannot find anything about that in the arcObject 10.0 documentation, help or API ( http://help.arcgis.com/en/sdk/10.0/java_ao_adf/api/arcobjects/index.html )

Thanks in advance.

Markus
0 Kudos
1 Reply
MarkusEichhorn
New Contributor II
Hi,
I'm still searching for an answer.
Does no one know an answer to my question or is it not clear what I meant.

Markus
0 Kudos