Expand Get User Activity outputs
Non planifiéeGet Current User activity in Workflow only returns the username, email, and role. I need additional properties that exist in ArcGIS Online. I cannot find documentation on running the Arcade Script activity and am getting an error. Could you please expose more of the user properties? Since we use OAuth logins, the user name is a long string of numbers, which is not useful. We need the fullName property returned, and it would be great if all of the properties below could be exposed.
Arcade:
-
Did you try the Get Portal User activity? I've never used it with AGOL credentials but as the activity passes through the PortalUser class which I know does work with AGOL I'd give that a try.
AGOL is a "portal" as far as the ArcGIS JS, Python, Arcade, and .NET libraries are concerned (probably most of the others too but I can't speak to them).
0 -
Hey Christal Higdon & Zack Robison. Zack's got it here - you want to use the Get Portal User activity. That returns an Esri user object, which as Zack mentioned has a bunch of properties: PortalUser | API Reference | ArcGIS Maps SDK for JavaScript 4.27 | ArcGIS Developers
Once you've got your Get Portal User returning a user object, you can dot into that fullname like =$portalUser.user.fullName
Here's an example of a workflow doing this:
1 -
Thank you!! I'm going to give it a go right now.
.... and it worked beautifully. Thank you for helping out a newbie.

I was trying to use Get User Info, which wasn't getting me everything I needed. Thanks for pointing me to the right activity.
1
Vous devez vous connecter pour laisser un commentaire.
Commentaires
3 commentaires