When I publish Feature Services in AGOL, they get published to https://services.arcgis.com/<orgid>/ArcGIS/rest/services/xyz
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?
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.
Aangemelde leden kunnen berichten plaatsen, updates volgen en meer. Nieuw hier? Registreer een gratis account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.