I have the display name of a certain user, but to be able to use the GetInteractiveClient() method in an automation script I would need the login name of the user.
engine.FindInteractiveClient("Message", 30, $"user:{username}", AutomationScriptAttachOptions.AttachImmediately);
Is it somehow possible to retrieve the login name of a user, starting from the display name?
Tom Waterbley [SLC] [DevOps Enabler] Selected answer as best 20th April 2022
Hi Tom,
Is it not possible to use {engine.UserLoginName} or {user.UserDisplayName}?
See DataMiner Help for more information.
Tom Waterbley [SLC] [DevOps Enabler] Edited comment 20th April 2022
Because the script is being triggered by DataMiner instead of the user, the “UserLoginName” unfortunately doesn’t contain the correct username. But we’ve solved it now by storing that login name at an earlier stage in the code. Thanks for your answer!