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

Discussion created by jarmin on Aug 14, 2012
Latest reply on Aug 19, 2012 by jarmin
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();
  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.