You're currently browsing the Ignition 7.8 docs. Click here to view the latest docs.

Description

Returns the currently logged-in username.

Syntax

system.security.getUsername()

  • Parameters

none

  • Returns

String - The current user name.

  • Scope

All

Code Examples
Code Snippet
#This code would run on a startup script and does special logic based upon who was logging in
name = system.security.getUsername()
if name == 'Bob':
   system.nav.openWindow("BobsHomepage")
else:
   system.nav.openWindow("NormalHomepage")
  • No labels