Hi,
Just curious if user account that run Easymorph tasks can be captured as a parameter? I'd like to use the user's info that ran an event so that I can send them an email when their task is complete. That way I would not have to hard code a huge distribution list for each task if they wanted to be notified. Any advice?
Check out the "System information" action. It returns the current user's Windows account.
Its worth noting that the system information returns all of the same info as the System function so you can use that also.
One thing to watch out for is that on EasyMorph Server, the windows identity for both the action and the function is only populated when the user triggering the workflow is authenticated using active directory. If they are using EasyMorph Server login and passwords then the value will be blank because they haven't authenticated with Windows in any way. I got caught out by this recently.
Hello,
It would be cool if the user interacting with easymorph web server could be retrieve with all the auth type you are implementing (Entra/OIDC/ EasyMorph) with an analog function. Is it impossible ? And what about dataset/columns/rows actions triggering ou Catalog assets ?
Thks
Sam
Thank you I will check it out
Is there an easy way to calculate an email with the Windows Identity?
Example, say the Windows Identity = HP\Jon.Smith
Is there a way to take the string to the right of the '' and add it to a domain?
In SQL:
DECLARE @WindowsIdentity varchar(50) = 'HP\Jon.Smith'
select SUBSTRING(@WindowsIdentity, CHARINDEX('',@WindowsIdentity)+1, 8000) + '@msn.com' AS RequestorEmail
Returns: Jon.Smith@msn.com
As @mattf suggested, the system() function can work as well. However, it's a less preferrable option as we will eventually remove user identities from the function and keep them only in the "System information" action.