ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage functions / Controls, pages and windows / User Groupware functions
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
Others
Stored procedures
gpwGetUserInfo (Function)
In french: gpwRecupInfoUtilisateur
Retrieves information about the current user (application that uses the User Groupware).
Example
// Retrieve the user's first name
FirstName is string
FirstName = gpwGetUserInfo(gpwInfoFirstName)
 
// Retrieve the list of groups for the user
sGroupList is string = gpwGetUserInfo(gpwInfoGroup)
 
FOR EACH STRING sGroup OF sGroupList SEPARATED BY TAB
       Trace(sGroup)
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.
Remark: the Password property of the variable is not specified.
gpwInfoFirstNameUser's first name.
gpwInfoGroupName of the group for the user or list of groups separated by tab.
gpwInfoLastNameLast name of user
gpwInfoLoginLogin of the user or constant corresponding to the type of user:
  • gpwSupervisor: Supervisor of the application.
  • 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: wd290gpu.dll
Minimum version required
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 04/03/2023

Send a report | Local help