Select to view content in your preferred language

GetUser Arcade function not reading username correctly

122
0
07-24-2024 08:56 AM
MargoHuang
New Contributor II

Hi all,

I am trying to return user email by passing user name into GetUser function in portal. This is the function I am trying to use - https://developers.arcgis.com/arcade/function-reference/portal_functions/#getuser

I am testing my Arcade function in ArcGIS Workflow Manager. Most of our user names contain character '@', when I try GetUser($currentPortal,'firstname.lastname@domain')['email'], it returns the arcade function back to me. When I try GetUser($currentPortal,'firstname.lastname')['email'] for users who don't have the domain name in their username, it returns the desired email address. I didn't find any information related to '@' being a special character in Arcade function. Does anyone know what might be causing this and how to fix it?

I am using portal admin account, so I do have the correct privilege to access emails.

Thanks.

Margo

0 Kudos
0 Replies