<?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 ServerUtilities.GetGroupInfo(ServerUtilities.GetServerEnvironment()) is returning null in Developers Questions</title>
    <link>https://community.esri.com/t5/developers-questions/serverutilities-getgroupinfo-serverutilities/m-p/1577066#M7403</link>
    <description>&lt;P&gt;ServerUtilities.GetGroupInfo(ServerUtilities.GetServerEnvironment()) is returning null in the&amp;nbsp;public byte[] HandleRESTRequest method of SOI.&lt;/P&gt;&lt;P&gt;What could be causing this, and/or where to look for possible cause/debug?&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;</description>
    <pubDate>Sun, 19 Jan 2025 10:41:39 GMT</pubDate>
    <dc:creator>Gurunara</dc:creator>
    <dc:date>2025-01-19T10:41:39Z</dc:date>
    <item>
      <title>ServerUtilities.GetGroupInfo(ServerUtilities.GetServerEnvironment()) is returning null</title>
      <link>https://community.esri.com/t5/developers-questions/serverutilities-getgroupinfo-serverutilities/m-p/1577066#M7403</link>
      <description>&lt;P&gt;ServerUtilities.GetGroupInfo(ServerUtilities.GetServerEnvironment()) is returning null in the&amp;nbsp;public byte[] HandleRESTRequest method of SOI.&lt;/P&gt;&lt;P&gt;What could be causing this, and/or where to look for possible cause/debug?&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Sun, 19 Jan 2025 10:41:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/serverutilities-getgroupinfo-serverutilities/m-p/1577066#M7403</guid>
      <dc:creator>Gurunara</dc:creator>
      <dc:date>2025-01-19T10:41:39Z</dc:date>
    </item>
    <item>
      <title>Re: ServerUtilities.GetGroupInfo(ServerUtilities.GetServerEnvironment()) is returning null</title>
      <link>https://community.esri.com/t5/developers-questions/serverutilities-getgroupinfo-serverutilities/m-p/1578611#M7405</link>
      <description>&lt;P&gt;This was actually occurring in&amp;nbsp;arcgis-enterprise-sdk-resources-master sample, in&amp;nbsp;LayerAccessSOI project... seems error is occurring in&amp;nbsp;FilterRESTRequest (which is downstream) from the&amp;nbsp;HandleRESTRequest method where the user role and group information is retrieved... but in&amp;nbsp;FilterRESTRequest where in line:&lt;BR /&gt;&lt;BR /&gt;var newResponse = restFilterOp.PostFilter(restInput, response, responseProperties, out newResponseProperties);&lt;BR /&gt;&lt;SPAN&gt;responseProperties = newResponseProperties;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;return newResponse;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;returns null to&amp;nbsp;newResponse this behavior occurs... Not 100% sure yet, why, but when I substituted the following:&lt;BR /&gt;&lt;BR /&gt;var newResponse = restFilterOp.PostFilter(restInput, response, responseProperties, out newResponseProperties) ?? response;&lt;BR /&gt;&lt;BR /&gt;where response is the response from call to&amp;nbsp;restRequestHandler.HandleRESTRequest in a line above in the same method, so that&amp;nbsp;newResponse will never be null, then this issue in&amp;nbsp;FilterRESTRequest disappears.&lt;BR /&gt;&lt;BR /&gt;For now this is workaround, which seems to work...&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 24 Jan 2025 12:59:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/serverutilities-getgroupinfo-serverutilities/m-p/1578611#M7405</guid>
      <dc:creator>Edwin5</dc:creator>
      <dc:date>2025-01-24T12:59:44Z</dc:date>
    </item>
  </channel>
</rss>

