How to know which user shelved an alarm?

I am using this function system.alarm.getShelvedPaths and even using the example code in the manual

However, it is returning usr:gateway-script as the user who shelved the alarm. I am getting the same result when when running it in a perspective session

system.alarm.getShelvedPaths | Ignition User Manual

Where/how are you shelving the alarms? The 'user' return value will depend on where the shelve operation happened - it is identifying the source as a gateway script calling system.alarm.shelve.

I am using a button that has an onActionPerformed event. I am using this system.alarm.shelve function and passing in an alarm source path in a script.

1 Like