|
|
|
|
|
- Rights required to add a user
- Rights management
- "SuperUser" user
<Connection variable>.AddUser (Function) In french: <Variable Connexion>.AjouteUtilisateur
Available only with this kind of connection
// Describe the connection MyConnection is Connection  // Open the connection MyConnection.OpenConnection() // Associate the data file with the connection Customer.ChangeConnection(MyConnection) // Characteristics of the new user HUser.Login = "FLO" HUser.Password = "FLOP" HUser.FullName = "Flora" HUser.Email = "Flo@myaddress.eu" HUser.Phone = "01.67.40.47.58" HUser.Groups = "ADMIN" + CR + "TEST" // Add the user IF MyConnection.AddUser() = True THEN Info("User added") END
Syntax
<Result> = <Connection>.AddUser()
<Result>: Boolean - True if the user was added,
- False if an error occurred. HError is used to identify the error.
<Connection>: Connection variable Name of the Connection variable that describes the connection to which a user must be added. Remarks Rights management 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.
This page is also available for…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|