When I publish Feature Services in AGOL, they get published to https://services.arcgis.com/<orgid>/ArcGIS/rest/services/xxx
This orgid is nice to have and sometimes essential to use in other REST API calls, just as https://www.arcgis.com/sharing/rest/portals/<orgid>/users
Can one generate a token through https://www.arcgis.com/sharing/rest/generateToken and then make a call to retrieve organization information, including the orgid?
Solved! Go to Solution.
See my reply to this thread:
https://community.esri.com/thread/79521#comment-341309
After you get your token using one of the methods described in the developer security and authentication documentation, ArcGIS Security and Authentication | ArcGIS for Developers , you can call into the ....sharing/rest/portals/self endpoint to get the orgId.
See my reply to this thread:
https://community.esri.com/thread/79521#comment-341309
After you get your token using one of the methods described in the developer security and authentication documentation, ArcGIS Security and Authentication | ArcGIS for Developers , you can call into the ....sharing/rest/portals/self endpoint to get the orgId.