Method System.GetUserName() Method GetUserName string GetUserName() Description Retrieves the name of the user associated with the current thread. Note This function is Windows specific, and is not available on all systems.