1.25 xestiascan_users_add
xestiascan_users_add adds a user to the user list or prints out a form for adding a user if the action to add an user has not been confirmed.
Parameters:
xestiascan_users_add(username, userinfo, scannerinfo, outputmoduleinfo, exportmoduleinfo, confirm);
Usage:
$pagedata = xestiascan_users_add();
$pagedata = xestiascan_users_add(“New User”, \%userinfo, \%scannerinfo, \%outputmoduleinfo, \%exportmoduleinfo, 1);
username
Specifies the username to add to the user list.
userinfo
Specifies the user information as a hashref.
Setting |
Value |
Username |
Specifies the username. |
Name |
Specifies the name of the user. |
Password |
Specifies the password of the user. |
ConfirmPassword |
Specifies the confirmed password (should be same as Password). |
Admin |
Specifies if the user has administrative privledges. |
Enabled |
Specifies if the account is enabled. |
scannerinfo
Specifies the scanner permissions as a hashref.
Setting |
Value |
scanner_(ScannerID) |
Specifies if the user has permission to use this scanner (A value of ‘on’ would allow the user to use that scanner). |
outputmoduleinfo
Specifies the output module permissions as a hashref. Each setting uses outputmodule_(OutputModuleName) and this specifies if the user has permission to use this output module (A value of ‘on’ would allow the user to use the module).
exportmoduleinfo
Specifies the export module permissions as a hashref. Each settings uses exportmodule_(ExportModuleName) and this specifies if the user has permission to use this export module (A value of ‘on’ would allow the user to use the module).
confirm
Confirms the action to add the user.