system.security.getUsername

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 do special logic based upon who was logging in
name = system.security.getUsername()
if name == 'Bob':
system.nav.openWindow("BobsHomepage")
else:
system.nav.openWindow("NormalHomepage")