ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

This content has been translated automatically.  Click here  to view the French version.
Help / WLanguage / WLanguage functions / Controls, pages and windows / User Groupware functions
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
Others
Stored procedures
Retrieves information about the current user (application that uses the User Groupware).
Example
// Récupération du prénom de l'utilisateur
Prénom is string 
Prénom = gpwGetUserInfo(gpwInfoFirstName)

// Récupération de la liste des groupes de l'utilisateur
sListeGroupe is string = gpwRecupInfoUtilisateur(gpwInfoGroup)

FOR EACH STRING sGroupe OF sListeGroupe SEPARATED BY TAB
        Trace(sGroupe)
END
Syntax
<Result> = gpwGetUserInfo(<Information>)
<Result>: String, Boolean or gpwUser variable
  • Requested information.
  • Variable of type gpwUser, if the gpwFullDetails constant has been used.
<Information>: Constant
Requested type of information:
gpwFullDetailsRetrieves a variable of type gpwUser containing all the information about the current user.
Note: the Password property of the variable is not set..
gpwInfoFirstNameUser's first name.
gpwInfoGroupName of the group for the user or list of groups separated by tab.
gpwInfoLastNameUser name
gpwInfoLoginLogin of the user or constant corresponding to the type of user:
  • gpwSupervisor: Application supervisor.
  • gpwVisitor: Visitor.
gpwInfoSupervisorUsed to find out whether the connected user is an administrator (<Result> will be set to True) or not (<Result> will be set to False).
gpwInfoTwoFactorAuthenticationDetermines if two-factor authentication is enabled or disabled (<Result> set to True or False, respectively) for the logged in user. This information is provided for each application.
Business / UI classification: Neutral code
Component: wd300gpu.dll
Minimum version required
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 09/21/2024

Send a report | Local help