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 add a user
  • Managing rights
  • "SuperUser" 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
Adds a user to a database. All the characteristics of the user must be entered in the 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.
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.
Remark: From version 19, HFSQL is the new name of HyperFileSQL.
Versions 22 and later
Android Widget This function is now available in Android widget mode.
WINDEV MobileAndroid This function is now available for Android applications.
WINDEVJava This function is now available for Java applications.
New in version 22
Android Widget This function is now available in Android widget mode.
WINDEV MobileAndroid This function is now available for Android applications.
WINDEVJava This function is now available for Java applications.
Android Widget This function is now available in Android widget mode.
WINDEV MobileAndroid This function is now available for Android applications.
WINDEVJava 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")
// Caractéristiques du nouvel utilisateur
HUser.Login = "FLO"
HUser.Password = "FLOP"
HUser.FullName = "Florence"
HUser.Email = "Flo@monadresse.fr"
HUser.Phone = "01.67.40.47.58"
HUser.Groups = "ADMIN" + CR + "TEST"
// Ajout de l'utilisateur
IF HAddUser("MaConnexion") = True THEN
Info("Utilisateur ajouté")
END
Syntax
<Result> = HAddUser(<Connection>)
<Result>: Boolean
  • True if the user was added,
  • False if an error occurred. HError is used to identify the error.
<Connection>: String or Variable of type Connection
Connection for which a user must be added. This connection corresponds to:
Remarks

Rights required to add a user

To add a user, you must have the following rights:
  • Rights to manage the users (hRightsManageUser constant).
  • Rights to see the users (hRightsSeeUser constant).
These constants are used in HInfoServerRights and HModifyServerRights.

Managing rights

No rights are granted by default to a new user (if this user is associated with no group).
If this user is associated with one or more groups, the rights associated with this group are granted to the user (the user "inherits" the rights associated with the group).
The following functions are used to grant rights to a user:
For more details, see Managing the rights in HFSQL Client/Server.

"SuperUser" user

If HUser.SuperUser = True, the user rights are not checked during an action. Therefore, all the actions can be performed by this user.
Component: wd270hf.dll
Minimum version required
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment