PC SOFT

WINDEVWEBDEV AND WINDEV MOBILE
ONLINE HELP

Home | Sign in | English UK

  • When is the modification of rights performed?
  • 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/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Others
Stored procedures
HModifyServerRights (Function)
In french: HModifieDroitServeur
HFSQL Client/ServerAvailable only with this kind of connection
Modifies the rights granted to a user or to a group on a HFSQL server.
Remark: to find out the rights granted to a group or to a user on a HFSQL server, use HInfoServerRights.
Remark: From version 19, HFSQL is the new name of HyperFileSQL.
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: An "Unknown user" or "Unknown group" error will be returned by HErrorInfo 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 (with or without quotes) 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 (with or without quotes)
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:
hRightsStopServerRights to stop a server (HStopServer).
hRightsChangeRightsRights to change the rights.
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).
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.
hRightsSendMessageToClientRights to send messages to the client computers.
hRightsManageTaskRights to manage the scheduled tasks.
hRightsManageServerRights to use HSetServer.
hRightsManageUserRights to delete and add users or groups.
hRightsReadLogStatRights to see the activity statistics and the logs of the server.
hRightsPriorityRights to modify the priority of the current application (HPriority) or the priority of another client application (HPriorityClient).
Versions 18 and later
hRightsServerReplication
New in version 18
hRightsServerReplication
hRightsServerReplication
Rights to define and perform a replication between two HFSQL servers.
hRightsBackupRights to perform a backup.
hRightsSeeUserRights to see the information regarding the users and the groups.
<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 to the group.
hForbiddenThe relevant rights are not granted to the user or to the group.
hInheritThe user will inherit from the value of the rights granted to the group to which he belongs.
Remarks

When is the modification of rights performed?

The modification of rights is effective as soon as HModifyServerRights is run for the users who are connected and affected by the modification. 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 : wd250hf.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