Hello,
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, it only pulls username not the rest when I log into our portal. We use IWA to portal. When I click to show JSON object, it shows Invalid username. See attached image.
Can you assist me how I can make this to work?
Heena
Solved! Go to Solution.
It worked after turning on anonymous access to IIS. Thank you for your assistance Zach!
Heena
Hello @Heena1,
All the JavaScript function is doing is sending a request to the following resource:
https://<Web context URL>/sharing/rest/community/users/<username>?f=json&token=<valid access token>
If you test sending the same request from your browser do you see the same error?
Hello @Heena1,
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.
Please feel free to email me at ZSutherby@esri.com and we can schedule a time that works best.
It worked after turning on anonymous access to IIS. Thank you for your assistance Zach!
Heena