<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic How do I get the user roles from the ArcGIS Server Manager with a servlet? in ArcObjects SDK Questions</title>
    <link>https://community.esri.com/t5/arcobjects-sdk-questions/how-do-i-get-the-user-roles-from-the-arcgis-server/m-p/547828#M14804</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I am using ArcGIS Server 10.0 SP3 for an FlexViewer-based Web-Mapping-Application. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;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.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This is how I get the ServerConnection and the ServerObjectManager. &lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
&amp;nbsp; ServletContext context = getServletContext();
&amp;nbsp; mapServerAdress = context.getInitParameter("MapServerAdress");
&amp;nbsp; mapServerUser = context.getInitParameter("MapServerUser");
&amp;nbsp; mapServerPasswd = context.getInitParameter("MapServerPasswd");
 
&amp;nbsp; try {
&amp;nbsp;&amp;nbsp; connection = new ServerConnection();
&amp;nbsp;&amp;nbsp; connection.connect(mapServerAdress);
&amp;nbsp; }
&amp;nbsp; IServerObjectManager soManager = connection.getServerObjectManager();
&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;At this point I know already the userName I want to request. Of course I know the admin-user for the Server.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;But how do I get the user roles now? I cannot find anything about that in the arcObject 10.0 documentation, help or API ( &lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/en/sdk/10.0/java_ao_adf/api/arcobjects/index.html" rel="nofollow noopener noreferrer" target="_blank"&gt;http://help.arcgis.com/en/sdk/10.0/java_ao_adf/api/arcobjects/index.html&lt;/A&gt;&lt;SPAN&gt; ) &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks in advance. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Markus&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 11 Dec 2021 23:42:24 GMT</pubDate>
    <dc:creator>MarkusEichhorn</dc:creator>
    <dc:date>2021-12-11T23:42:24Z</dc:date>
    <item>
      <title>How do I get the user roles from the ArcGIS Server Manager with a servlet?</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/how-do-i-get-the-user-roles-from-the-arcgis-server/m-p/547828#M14804</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I am using ArcGIS Server 10.0 SP3 for an FlexViewer-based Web-Mapping-Application. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;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.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This is how I get the ServerConnection and the ServerObjectManager. &lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
&amp;nbsp; ServletContext context = getServletContext();
&amp;nbsp; mapServerAdress = context.getInitParameter("MapServerAdress");
&amp;nbsp; mapServerUser = context.getInitParameter("MapServerUser");
&amp;nbsp; mapServerPasswd = context.getInitParameter("MapServerPasswd");
 
&amp;nbsp; try {
&amp;nbsp;&amp;nbsp; connection = new ServerConnection();
&amp;nbsp;&amp;nbsp; connection.connect(mapServerAdress);
&amp;nbsp; }
&amp;nbsp; IServerObjectManager soManager = connection.getServerObjectManager();
&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;At this point I know already the userName I want to request. Of course I know the admin-user for the Server.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;But how do I get the user roles now? I cannot find anything about that in the arcObject 10.0 documentation, help or API ( &lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/en/sdk/10.0/java_ao_adf/api/arcobjects/index.html" rel="nofollow noopener noreferrer" target="_blank"&gt;http://help.arcgis.com/en/sdk/10.0/java_ao_adf/api/arcobjects/index.html&lt;/A&gt;&lt;SPAN&gt; ) &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks in advance. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Markus&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 23:42:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/how-do-i-get-the-user-roles-from-the-arcgis-server/m-p/547828#M14804</guid>
      <dc:creator>MarkusEichhorn</dc:creator>
      <dc:date>2021-12-11T23:42:24Z</dc:date>
    </item>
    <item>
      <title>Re: How do I get the user roles from the ArcGIS Server Manager with a servlet?</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/how-do-i-get-the-user-roles-from-the-arcgis-server/m-p/547829#M14805</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi, &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm still searching for an answer. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Does no one know an answer to my question or is it not clear what I meant.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Markus&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Aug 2012 06:44:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/how-do-i-get-the-user-roles-from-the-arcgis-server/m-p/547829#M14805</guid>
      <dc:creator>MarkusEichhorn</dc:creator>
      <dc:date>2012-08-20T06:44:33Z</dc:date>
    </item>
  </channel>
</rss>

