Hi all!
Our app leverages Esri SSO. I want to take the information provided in a S123 webhook and map it the same user in our system. How can I do that? I see username is provided under userInfo and url is provided under portalInfo. Those 2 parameters get me close to what I need, but we save esri_org_id and esri_username in our system for each user.
Can I use token under portalInfo to get the esri_org_id? What can the portalInfo token be used for?
Thanks,
Matt
Hi Matt,
You should be able to get the org id information via a call to the /sharing/rest/portals/self resource (i.e., https://www.arcgis.com/sharing/rest/portals/self) when using the token - either the urlKey (org short URL) property or the user.orgId property (UID of the org) provide that information.