| **Navigation:**  [[advanced topics 1.htm|Advanced Topics]] > Clarion Language Utilities >====== GetUserName (Return Network User Name) ====== | [[gettemppath return tmp or temp environment path .htm|{{btn_prev_n.gif|Previous page}}]][[advanced topics 1.htm|{{btn_home_n.gif|Return to chapter overview}}]][[istermserver verify terminal server usage .htm|{{btn_next_n.gif|Next page}}]] | | || **GETUSERNAME(** **)** {{blk2blue.jpg|blk2blue.jpg}} **GETUSERNAME** Returns the current default user name **GETUSERNAME** is used to retrieve the current default user name, or the user name used to establish a network connection. **GETUSERNAME** returns a blank string if an error is encountered. To add support for this utility to your existing applications, you need only include the CWUTIL.INC file in the Global Map section of your program: **INCLUDE('CWUTIL.INC'),ONCE** **Return Data Type:**     STRING **Example:** **  GLO:LoginName = GETUSERNAME()   !return a unique login name**