Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Panel
titleDescription

Returns the currently logged-in username.

Panel
titleSyntax

system.security.getUsername()

  • Parameters

none

  • Returns

String - The current user name.

  • Scope

All

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