PC SOFT

ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Home | Sign in | English EN
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 is using the User Groupware).
Example
// Retrieve the first name of user
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: wd280gpu.dll
Minimum version required
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment