--- 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](../../../ignition-modules/vision/vision-project-properties/vision-project-properties.md#vision-permissions-properties) restrictions. ## Syntax `system.security.getUsername()` ### Parameters Nothing ### Returns **String** - The current user name. ### Scope Vision Client ## 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") ```