I am trying to capture the current logged in user in the CSSDK for one of my email tasks in a workflow. I want to be able to display the user who is acting on the task, who may or may not be the owner of the task. Within the Java code for the task, I have the line:
String activeUser = getClient().getCurrentUser().getFullName();
But this keeps returning the task owner and not the person who is logged in and acting on the task.
Is there another way to get the currently logged in user? Why is this way not working? According to CSClient, it represents the active session.