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 with assigned value are separated by a semicolon, for example "type:local;stored:tmp;groups:$ADMIN,$OPER;name:test;password:test;priority:5;".
"type:local/net;" - User type, where local is local and net is 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 login name (default is empty). 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 range is 0-100, where 0 means the lowest priority and 100 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.
Temporary local user L_TEST creation, with the login name test, password t and priority 5, included in $ADMIN and $OPER groups.
result = 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.
result = Pm.AddUser("N_TEST", "type:net;stored:tmp;groups:$ADMIN,$OPER;name:test;password:t;ipaddress:;")
- 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