PC SOFT

ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Home | Sign in | English EN

This content has been translated automatically. Click here to view the French version.
  • 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.
Versions 17 and later
iPhone/iPad This function is now available for iPhone/iPad applications.
New in version 17
iPhone/iPad This function is now available for iPhone/iPad applications.
iPhone/iPad This function is now available for iPhone/iPad applications.
Versions 18 and later
Universal Windows 10 App This function is now available in Windows Store apps mode.
New in version 18
Universal Windows 10 App This function is now available in Windows Store apps mode.
Universal Windows 10 App This function is now available in Windows Store apps mode.
Remark: From version 19, HFSQL is the new name of HyperFileSQL.
Versions 21 and later
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
New in version 21
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
Versions 22 and later
Android Widget This function is now available in Android widget mode.
Android This function is now available for Android applications.
Java This function is now available for Java applications.
New in version 22
Android Widget This function is now available in Android widget mode.
Android This function is now available for Android applications.
Java This function is now available for Java applications.
Android Widget This function is now available in Android widget mode.
Android This function is now available for Android applications.
Java This function is now available for Java applications.
Example
// Description de la connexion
HDescribeConnection("MaConnexion", "Julie", "MotDePasse", "MonServeurHF", "MaBaseDeDonnées", ...
hAccessHFClientServer, hORead)
// Ouverture de la connexion
HOpenConnection("MaConnexion")
// Association du fichier de données à la connexion
HChangeConnection(Client, "MaConnexion")
IF HInfoUser("MaConnexion", "Florence") = True THEN
// Modification des caractéristiques
HUser.Groups = "ADMIN" + CR + "TEST" + CR + "DOC"
IF HModifyUser("MaConnexion", "Florence") = True THEN
Info("Utilisateur modifié")
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, the HModifyUser function will return False and the error message will be "User unknown".
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: wd270hf.dll
Minimum version required
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment