AddUser - method of object Pm

Adding new user.
AddUser(sId As String, sParams As String) As Boolean
b = Pm.AddUser(sId, sParams)
sId(String) New (local or net) user identifier.
sParams(String) Additional parameters of the created user. Entries are in format KeyVal, for example "type:local;stored:tmp;groups:$ADMIN,$OPER;name:test;password:test;priority:5;".
"type:local/net;" - User type (local = local user, net = network user).
"stored:ini/tmp;" - User configuration saving method, where ini means saving into local INI text file and tmp means saving temporarily in computer´s memory.
"groups:group1,group2,...;" - User groups list (the groups are separated by ',' comma), the new user belongs to.
"name:sss;" (optional) - User name (default is empty string). The login name is obligatory for local users. The login name is not obligatory for network users, the empty value means that the login name and password is not tested.
"password:sss;" (optional) - User password (default is empty).
"priority:nnn;" (optional) - The user priority in the range 0-100, where 0 means the lowest priority and 100 means the highest priority.
"ipaddress:nnn.nnn.nnn.nnn;" (optional) - Computer IP address, the network user is enabled to log in from (default is empty). Empty value means that the IP network user address is not checked.
Return Values:
true - user was added succesfully
false - new user adding failed
This method is not functional for Web panels in JavaScript language (and therefore it is not working in Web panels).
Temporary local user L_TEST creation, with the login name test, password t and priority 5, included in $ADMIN and $OPER groups.
VBScriptSelect and copy to clipboard

Dim bUser
bUser = Pm.AddUser("L_TEST", "type:local;stored:tmp;groups:$ADMIN,$OPER;name:test;password:t;priority:5;")
Temporary network user N_TEST creation, with the login name test and password t, included in $ADMIN and $OPER groups, limited solely to IP adress.
VBScriptSelect and copy to clipboard

Dim bUser
bUser = Pm.AddUser("N_TEST", "type:net;stored:tmp;groups:$ADMIN,$OPER;name:test;password:t;ipaddress:;")
PROMOTIC 8.3.30 SCADA system documentation - MICROSYS, spol. s r.o.

Send page remarkContact responsible person
- Pm
- Abs
- AddUser
- Cos
- E
- Exp
- LN2
- PI
- Pow
- Sin
- Tan
© MICROSYS, spol. s r. o.Tavičská 845/21 703 00 Ostrava-Vítkovice