system.security.getUsername()

Ignition version 7.7.0
Lost functionality of system.security.getUsername()
With 7.7.0 returns client auto-login user rather than Windows user. Prior Ignition versions returned Windows user.

From Script Playground:
user = system.security.getUsername()
print user
outputs windows user

From client (for example on action performed on a button):
user = system.security.getUsername()
print user
outputs Ignition autologin user

Any workaround for this?

You can get both from the tags.

system.tag.getTagValue("[System]Client/User/OSUsername") system.tag.getTagValue("[System]Client/User/Username")

1 Like

Got it. Thanks.