ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / Managing databases / HFSQL / HFSQL Client/Server functions
  • When are rights changed?
  • What are the rights required to add and/or to modify the users or the groups?
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 the rights granted to a user or to a group on an HFSQL server.
Remark: to find out the rights granted to a group or to a user on an HFSQL server, use HInfoServerRights.
Example
// Copy the rights from a user to another one
Rights is string
Rights = HInfoServerRights("MyConnection", "Smith", hRightsCreateDB)
HModifyServerRights("MyConnection", "Doe", hRightsCreateDB, Rights)
Syntax
<Result> = HModifyServerRights(<Connection> , <User/Group> , <Rights to modify> , <New values>)
<Result>: Boolean
  • True if the rights have been modified,
  • False otherwise. HErrorInfo is used to identify the error. No modification is performed if the new value is already assigned to the specified rights.
Remark: HErrorInfo will return an "Unknown user" or "Unknown group" error if the current user does not have the rights to see the users (hRightsSeeUser constant) and if he wants to get information about another user or another group.
<Connection>: Character string or Connection variable
Connection for which the rights granted to a user or to a group of users must be modified. This connection corresponds to:
<User/Group>: Character string
Name of the user or group whose rights must be modified.
<Rights to modify>: Integer constant (or combination of constants)
List of rights to modify:
hRightsBackupRights to perform a backup.
hRightsChangePasswordRights to change the password of a user on the server (the user can change his own password and the administrator can change the password of each user).
hRightsChangeRightsRights to change rights.
hRightsCreateDBRights to create a database.
Remark: The rights to create a database automatically give the rights to connect to this database when it is created.
hRightsDisconnectClientRights to disconnect the client computers.
hRightsManageServerRights to use HSetServer.
hRightsManageTaskRights to manage the scheduled tasks.
hRightsManageUserRights to delete and add users or groups.
hRightsPriorityRights to modify the priority of the current application (HPriority) or the priority of another client application (HPriorityClient).
hRightsReadLogStatRights to see the activity statistics and the logs of the server.
hRightsSeeUserRights to see the information regarding the users and the groups.
hRightsSendMessageToClientRights to send messages to the client computers.
hRightsServerReplicationRights to define and perform a replication between two HFSQL servers.
hRightsStopServerRights to stop a server (HStopServer).
<New values>: Integer constants
List of new values for the modified rights. New values must be assigned to all the rights specified in <Rights to modify> (in the same order).
If a single value is indicated in this parameter, it will be assigned to all the rights specified in <Rights to modify>.
The possible values are as follows:
hAllowedThe relevant rights are granted to the user or group.
hForbiddenThe relevant rights are not granted to the user or group.
hInheritThe user will inherit from the value of the rights granted to the group to which he belongs.
Remarks

When are rights changed?

The change is effective as soon as HModifyServerRights is run. There is no need to restart the server to take the new rights into account.

What are the rights required to add and/or to modify the users or the groups?

The table below presents the rights required to handle the characteristics of groups and users:
hRightsManageUserhRightsSeeUser
Actions on the other users or groups (other than the current user and group)
x
Modify the name of a user or group
x
x
Add a user or a group
x
x
Modify the characteristics of the current user or group
x
See the users or the groups
x
Component: wd290hf.dll
Minimum version required
  • Version 9
This page is also available for…
Comments
METODO CREATE DATABASE HFSQL CLIENT/SERVER VIA WEBSERVICE COM DIRETIVAS OK
https://forum.pcsoft.fr/fr-FR/pcsoft.br.windev/3252-informatica-novo-metodo-create-database-hfsql-client-server/read.awp
BOLLER
13 Jul. 2019

Last update: 05/26/2022

Send a report | Local help