ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

This content has been translated automatically.  Click here  to view the French version.
Help / WLanguage / WLanguage functions / Standard functions / Windows functions / Network functions
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
Others
Stored procedures
Identifies the name of the connected user.
WEBDEV - Server code In WEBDEV:
  • In test mode, identifies the name of the connected user on the server. In deployment, identifies the user used by default by the Web server.
  • In an Intranet context, can be used to find out the Windows login of the Client computer. However, for security reasons, browsers are "crippled" in order not to disclose any information about configuration or connection.. This security prevents from retrieving the Windows login user.
    Special case Full Windows configuration (IIS - IE) with the Internet user's workstation and the Web server on the same domain: it is possible to find out the name of the Windows user connected by configuring the IIS server: "Anonymous connection" must no longer be authorized, but "Integrated Windows authentication" must be activated.
Example
// Identifier l'utilisateur connecté
ResUtilisateur = NetworkUser()
// Identifier l'utilisateur connecté
ResUtilisateur = NetworkUser()
Syntax
<Result> = NetworkUser()
<Result>: Character string
Name of connected user.
Component: wd300std.dll
Minimum version required
  • Version 9
This page is also available for…
Comments
Video NetworkUser
https://youtu.be/ZTmiqVczVHg
https://windevdesenvolvimento.blogspot.com/2019/09/dicas-2268-windev-webdev-mobile-net-4.html
// BTN_NetworkUser_Nome_usuario
EDT_NOME_USUARIO=NetworkUser()
amarildo
01 Sep. 2019
SHOW USER NAME
https://youtu.be/b8Q6iYXvQr0

// BTN_MOSTRAR_NOME_DO_USUARIO
// MOSTRAR NOME DO USUARIO
// SHOW USER NAME
// AFFICHER LE NOM D'UTILISATEUR

STC_NOME_DO_USUARIO="NOME DO USUARIO:"+NetworkUser()
amarildo
10 Jan. 2019
Exemplo Pegar Nome Usuario Windows
Exemplo Pegar Nome Usuario Windows

EDT_usuario_Windows=NetworkUser()

//Blog com Video e Exemplo
http://windevdesenvolvimento.blogspot.com.br/2016/09/curso-windev-funcoes-windows-011.html
https://www.youtube.com/watch?v=evEVxxs3pR0
De matos
18 Sep. 2016

Last update: 03/27/2025

Send a report | Local help