--- title: "system.security.getUsername" description: "Returns the currently logged-in username." --- # system.security.getUsername > Returns the currently logged-in username. This function is used in **Python Scripting**. ## Description ## Client Permission Restrictions This scripting function has no [Client Permission](projects\project-properties\project-properties.md#client---permissions) restrictions. ## Syntax `system.security.getUsername()` ### Parameters None ### Returns **String** - The current user name. ### Scope All ## Code Examples ```python title="Example #1" # 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") ```