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.
bUser = Pm.AddUser("L_TEST", "type:local;stored:tmp;groups:$ADMIN,$OPER;name:test;password:t;priority:5;")
bUser = Pm.AddUser("N_TEST", "type:net;stored:tmp;groups:$ADMIN,$OPER;name:test;password:t;ipaddress:192.168.0.5;")