Hello everyone,
I want to call arcgis web api to get the list of all users and groups in my organization, using a token I have generated during authentication process.
I have tried a couple of options but none of them seems to work:
https://geofy.maps.arcgis.com/portaladmin/security/groups/searchEnterpriseGroups (POST)
<SPAN class="punctuation token">{</SPAN>
<SPAN class="string token">"f"</SPAN><SPAN class="punctuation token">:</SPAN><SPAN class="string token">"json"</SPAN><SPAN class="punctuation token">,</SPAN>
<SPAN class="string token">"maxCount"</SPAN><SPAN class="punctuation token">:</SPAN><SPAN class="string token">"10"</SPAN>
<SPAN class="punctuation token">}</SPAN><SPAN class="line-numbers-rows"><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN></SPAN>or
https://geofy.maps.arcgis.com/portaladmin/security/groups/searchEnterpriseGroups (POST)
<SPAN class="punctuation token">{</SPAN>
<SPAN class="string token">"token"</SPAN><SPAN class="punctuation token">:</SPAN><SPAN class="string token">"xyz"</SPAN>
<SPAN class="string token">"f"</SPAN><SPAN class="punctuation token">:</SPAN><SPAN class="string token">"json"</SPAN><SPAN class="punctuation token">,</SPAN>
<SPAN class="string token">"maxCount"</SPAN><SPAN class="punctuation token">:</SPAN><SPAN class="string token">"10"</SPAN>
<SPAN class="punctuation token">}</SPAN><SPAN class="line-numbers-rows"><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN></SPAN>or
https://geofy.maps.arcgis.com/sharing/rest/content/groups?f=pjson&token=xyz (GET)
I don't know if there is something wrong with URL or with parameters. I have been trying for more then 2 week to solve this but nothing seems to work.
I have analysed the Rest API reference ArcGIS REST API but still couldn't find the solution.
Kind Regards