PC SOFT

WINDEVWEBDEV AND WINDEV MOBILE
ONLINE HELP


New WINDEV, WEBDEV, WINDEV Mobile 25 feature!
  • Rights required to add a user group
  • Managing rights
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Others
Stored procedures
<Connection variable>.AddGroup (Function)
In french: <Variable Connexion>.AjouteGroupe
HFSQL Client/ServerAvailable only with this kind of connection
Adds a group of users. All the group characteristics must be specified in the variables for group management.
Remark: From version 19, HFSQL is the new name of HyperFileSQL.
Example
// Describe the connection
MyConnection is Connection
 
// Describe the connection
MyConnection..User = "USER"
MyConnection..Password = "PASSWORD"
MyConnection..Server = "MYSERVER"
MyConnection..Database = "Database"
MyConnection..Provider = hAccessHFClientServer
MyConnection..Access = hORead
 
 
// Open the connection
MyConnection.OpenConnection()
// Associate the data file with the connection
Customer.ChangeConnection(MyConnection)
// Characteristics of the new group
HGroup.Name = "ADMIN2"
HGroup.Description = "Database administrators"
HGroup.Users = "Flo" + CR + "Julia"
// Add the group
IF MyConnection.AddGroup() = True THEN
Info("Group added")
END
Syntax
<Result> = <Connection>.AddGroup()
<Result>: Boolean
  • True if the group 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 the group of users must be added.
Remarks

Rights required to add a user group

To add a user group, you must have the following rights:
  • Rights to manage the users (hRightsManageUser constant).
  • Rights to see the users (hRightsSeeUser constant).

Managing rights

No rights are granted to a new group.
The following function are used to grant rights to a group:
See Managing the rights in HFSQL Client/Server for more details.
Component : wd250hf.dll
Minimum version required
  • Version 25
This page is also available for…
Comments
Click [Add] to post a comment