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
Solved! Go to Solution.
Still not sure why that happens but I found a work around by using Replace(). Our portal user accounts are firstname.lastname@PortalDomain. And our emails are firstname.lastname@emailDomain. Since the two formats are the same except that last part, I am able to replace portal domain with email domain to get the emails.
Still not sure why that happens but I found a work around by using Replace(). Our portal user accounts are firstname.lastname@PortalDomain. And our emails are firstname.lastname@emailDomain. Since the two formats are the same except that last part, I am able to replace portal domain with email domain to get the emails.
Wanted to post an update. We had the issue when we were on Enterprise 10.9.1. Since our migration to 11.3, this seems to have been resolved.