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
Modifies a user's information according to the elements found in the corresponding variables for user management.
Example
// Describe the connection
HDescribeConnection("MyConnection", "Julia", "Password", "MyHFServer", "MyDatabase", ...
hAccessHFClientServer, hORead)
// Open the connection
HOpenConnection("MyConnection")
// Associate the data file with the connection
HChangeConnection(Customer, "MyConnection")
IF HInfoUser("MyConnection", "Flora") = True THEN
// Modify the characteristics
HUser.Groups = "ADMIN" + CR + "TEST" + CR + "DOC"
IF HModifyUser("MyConnection", "Flora") = True THEN
Info("User modified")
END
END
Syntax
<Result> = HModifyUser(<Connection> , <User>)
<Result>: Boolean
  • True if the user was modified,
  • False if an error occurred. HError is used to identify the error.
<Connection>: Character string or Connection variable
Connection for which a user must be modified. This connection corresponds to:
<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, HModifyUser 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).
Remark: These constants are used in HInfoServerRights and HModifyServerRights.
Component: wd290hf.dll
Minimum version required
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 07/06/2023

Send a report | Local help