ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / Managing databases / HFSQL / HFSQL Client/Server functions
  • Rights required to modify a user
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
<Connection variable>.ModifyUser (Function)
In french: <Variable Connexion>.ModifieUtilisateur
HFSQL Client/ServerAvailable only with this kind of connection
Modifies a user's information according to the elements found in the corresponding variables for user management.
Example
// Describe the connection
MyConnection is Connection
 
// Open the connection
MyConnection.OpenConnection()
// Associate the data file with the connection
Customer.ChangeConnection(MyConnection)
IF MyConnection.InfoUser("Flora") = True THEN
// Modify the characteristics
HUser.Groups = "ADMIN" + CR + "TEST" + CR + "DOC"
IF MyConnection.ModifyUser("Flora") = True THEN
Info("User modified")
END
END
Syntax
<Result> = <Connection>.ModifyUser(<User>)
<Result>: Boolean
  • True if the user was modified,
  • False if an error occurred. HError is used to identify the error.
<Connection>: Connection variable
Name of the Connection variable that describes the connection for which a user must be modified.
<User>: Character string
Name of the user whose characteristics must be modified. This name must correspond to the HUser.Login variable for one of the users of the specified connection.
Remarks

Rights required to modify a user

To modify a user (other than the current user), you must have the right to see the users (hRightsSeeUser constant). Otherwise, <Connection variable>.ModifyUser will return False and an "Unknown user" error message will appear.
To modify the name of a user, you must have the rights to see the users (hRightsSeeUser constant) and the rights to manage the users (hRightsManageUser constant).
Component: wd290hf.dll
Minimum version required
  • Version 25
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 07/06/2023

Send a report | Local help