<?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 Re: Sample JavaScript Example Querying an ArcGIS Organization in ArcGIS Survey123 Questions</title>
    <link>https://community.esri.com/t5/arcgis-survey123-questions/sample-javascript-example-querying-an-arcgis/m-p/1181301#M43156</link>
    <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/457589"&gt;@Heena1&lt;/a&gt;,&amp;nbsp;&lt;/P&gt;&lt;P&gt;All the JavaScript function is doing is sending a request to the following resource:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://&amp;lt;Web" target="_blank"&gt;https://&amp;lt;Web&lt;/A&gt;&amp;nbsp;context URL&amp;gt;/sharing/rest/community/users/&amp;lt;username&amp;gt;?f=json&amp;amp;token=&amp;lt;valid access token&amp;gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you test sending the same request from your browser do you see the same error?&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 08 Jun 2022 22:38:07 GMT</pubDate>
    <dc:creator>ZacharySutherby</dc:creator>
    <dc:date>2022-06-08T22:38:07Z</dc:date>
    <item>
      <title>Sample JavaScript Example Querying an ArcGIS Organization</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/sample-javascript-example-querying-an-arcgis/m-p/1181264#M43154</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I tried using Querying an ArcGIS Organization Javascript Sample which is available on Survey123 Connect. It automatically populates the user info with the currently signed in. It pulls all user info (username, first name, last name, email) when I sign into ArcGIS Online. However,&lt;STRONG&gt; it only pulls username not the rest when I log into our portal.&lt;/STRONG&gt; We use IWA to portal. When I click to show JSON object, it shows Invalid username. See attached image.&lt;/P&gt;&lt;P&gt;Can you assist me how I can make this to work?&lt;/P&gt;&lt;P&gt;Heena&lt;/P&gt;</description>
      <pubDate>Wed, 08 Jun 2022 20:46:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/sample-javascript-example-querying-an-arcgis/m-p/1181264#M43154</guid>
      <dc:creator>Heena1</dc:creator>
      <dc:date>2022-06-08T20:46:59Z</dc:date>
    </item>
    <item>
      <title>Re: Sample JavaScript Example Querying an ArcGIS Organization</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/sample-javascript-example-querying-an-arcgis/m-p/1181301#M43156</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/457589"&gt;@Heena1&lt;/a&gt;,&amp;nbsp;&lt;/P&gt;&lt;P&gt;All the JavaScript function is doing is sending a request to the following resource:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://&amp;lt;Web" target="_blank"&gt;https://&amp;lt;Web&lt;/A&gt;&amp;nbsp;context URL&amp;gt;/sharing/rest/community/users/&amp;lt;username&amp;gt;?f=json&amp;amp;token=&amp;lt;valid access token&amp;gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you test sending the same request from your browser do you see the same error?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 08 Jun 2022 22:38:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/sample-javascript-example-querying-an-arcgis/m-p/1181301#M43156</guid>
      <dc:creator>ZacharySutherby</dc:creator>
      <dc:date>2022-06-08T22:38:07Z</dc:date>
    </item>
    <item>
      <title>Re: Sample JavaScript Example Querying an ArcGIS Organization</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/sample-javascript-example-querying-an-arcgis/m-p/1181638#M43192</link>
      <description>&lt;P&gt;Hi Zach,&lt;/P&gt;&lt;P&gt;Sending the same request from browser doesn't give the same error. See attached.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for helping!&amp;nbsp;&lt;/P&gt;&lt;P&gt;Zach&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 09 Jun 2022 21:32:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/sample-javascript-example-querying-an-arcgis/m-p/1181638#M43192</guid>
      <dc:creator>Heena1</dc:creator>
      <dc:date>2022-06-09T21:32:57Z</dc:date>
    </item>
    <item>
      <title>Re: Sample JavaScript Example Querying an ArcGIS Organization</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/sample-javascript-example-querying-an-arcgis/m-p/1182083#M43209</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/457589"&gt;@Heena1&lt;/a&gt;,&amp;nbsp;&lt;/P&gt;&lt;P&gt;That's strange the same REST request worked in the browser, let's schedule a call to hop on a screen share and take a look at the behavior. There's a tool we can use to see exactly what's happening when Survey123 sends the request.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please feel free to email me at &lt;A href="mailto:ZSutherby@esri.com" target="_blank"&gt;ZSutherby@esri.com&lt;/A&gt;&amp;nbsp;and we can schedule a time that works best.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 10 Jun 2022 22:40:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/sample-javascript-example-querying-an-arcgis/m-p/1182083#M43209</guid>
      <dc:creator>ZacharySutherby</dc:creator>
      <dc:date>2022-06-10T22:40:22Z</dc:date>
    </item>
    <item>
      <title>Re: Sample JavaScript Example Querying an ArcGIS Organization</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/sample-javascript-example-querying-an-arcgis/m-p/1183325#M43276</link>
      <description>&lt;P&gt;It worked after turning on anonymous access to IIS. Thank you for your assistance Zach!&lt;/P&gt;&lt;P&gt;Heena&lt;/P&gt;</description>
      <pubDate>Wed, 15 Jun 2022 21:43:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/sample-javascript-example-querying-an-arcgis/m-p/1183325#M43276</guid>
      <dc:creator>Heena1</dc:creator>
      <dc:date>2022-06-15T21:43:39Z</dc:date>
    </item>
  </channel>
</rss>

