Retrieves information about the current user (application that uses the User Groupware).
// 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
<Result> = gpwGetUserInfo(<Information>)
<Result>: String, Boolean or gpwUser variable
- Requested information.
- Variable of type gpwUser, if the gpwFullDetails constant has been used.
Requested type of information:
|gpwFullDetails||Retrieves a variable of type gpwUser containing all the information about the current user.|
Remark: the Password property of the variable is not specified.
|gpwInfoFirstName||User's first name.|
|gpwInfoGroup||Name of the group for the user or list of groups separated by tab.|
|gpwInfoLastName||Last name of user|
|gpwInfoLogin||Login of the user or constant corresponding to the type of user: |
- gpwSupervisor: Supervisor of the application.
- gpwVisitor: Visitor.
|gpwInfoSupervisor||Used to find out whether the connected user is an administrator (<Result> will be set to True) or not (<Result> will be set to False).|
|gpwInfoTwoFactorAuthentication||Determines 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