Welcome Serena Central users! CLICK HERE
The migration of the Serena Central community is currently underway. Be sure to read THIS MESSAGE to get your new login set up to access your account.
Highlighted
New Member.. kcoyne
New Member..
393 views

User that performed Custom Action

Jump to solution

I have created a Custom Action script that puts some details of the selected event into a separate database table.  That is working fine without issue, but I want to have the logged in user that performed the custom action included with the information.


In a custom action groovy script, how can I determine who the logged in user is that performed the action?  An event list is the only thing passed to the function.  Is there a global variable available or something along those lines with user info?

Tags (2)
0 Likes
1 Solution

Accepted Solutions
Micro Focus Expert
Micro Focus Expert

Re: User that performed Custom Action

Jump to solution

I had a similar requirement from one of my customers. There is no API method that could provide you with the name of a logged in user executing a custom action. So the workaround we used was to first ask that user to assign the event to himself, and then use getAssignedUserLogin() method in the groovy script to get the user name.

0 Likes
1 Reply
Micro Focus Expert
Micro Focus Expert

Re: User that performed Custom Action

Jump to solution

I had a similar requirement from one of my customers. There is no API method that could provide you with the name of a logged in user executing a custom action. So the workaround we used was to first ask that user to assign the event to himself, and then use getAssignedUserLogin() method in the groovy script to get the user name.

0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.