|
|
|
|
- Rights required to modify a user
<Connection variable>.ModifyUser (Function) In french: <Variable Connexion>.ModifieUtilisateur
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) 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).
This page is also available for…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|