Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Scripting_function


Panel
titleDescription

Returns the currently logged-in username.

Client permissions restrictions


Panel
titleSyntax

system.security.getUsername()

  • Parameters

Nothing

  • Returns

String - The current user name.

  • Scope

Vision Client

Panel
titleCode Examples
Code Block
languagepy
titleCode Snippet
# This code runs 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")
Panel
titleKeywords

system security getUsername, security.getUsername