Select to view content in your preferred language

What can I use the token for in portalInfo in a webhook?

673
1
07-02-2018 06:22 AM
MattStayner
Frequent Contributor

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

Tags (2)
0 Kudos
1 Reply
JamesTedrick
Esri Esteemed Contributor

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.