system.security.getUsername() not working in gateway scope

system.security.getUsername() not working in gateway scope. I want to use system.security.getUsername() in Gateway Update event script.

According to documenttationit should work. system.security.getUsername - Ignition User Manual 8.1 - Ignition Documentation

Scope

Vision Client

You can't use it in gateway scope.
In the context of the project change script, you get an automatic variable named 'actor':

https://docs.inductiveautomation.com/display/DOC81/Gateway+Event+Scripts#GatewayEventScripts-UpdateScript

1 Like

Actually I am trying to implement the git versioning for my ignition-pod (hosted in kubernetes using docker image). Since the ignition has multiple user access in designer, so I wanted to wanted to add that ignition username in the commit also whoever made the changes.

Moreover, I am not sure how to access these "actor" via script?