Remember that these methods are generally only meaningful within the dynamic scope of an HTTP request or CLI command. Use the dev mailing list or IRC if you still have issues.
This is still an issue and I don't quite understand why this JIRA ticket has been closed.
Could you please clarify how to retrieve the currently logged-in user from a shared library? Is this currently possible or not? Everything I tried so far returns SYSTEM as mentioned above. The behavior is different from the use of those API calls from the Groovy console (which works as expected).
Jesse Glick Thanks for confirming. Just for my and other people's understanding, could you also provide some technical details on why this functionality is not available?
A build is not generally run with any association with a user whatsoever. The question just does not make sense. If a build happened to be triggered manually by a user (which is not the normal case), that information is already available via UserIdCause.