Appendix: Built-in Scripting Language RemoveUser Removes a user from the system. Syntax RemoveUser( strUserName ) strUserName The name of the user to be removed. Returned value This function returns the following possible values: Examples Note: You can use this function to remove only those users you created using the CreateUser( ) function. SetPassword Use to specify a new user password. Syntax SetPassword( strUserName , optStrNewPassword ) strUserName The name of the user.
optStrNewPassword Optional The new password InduSoft Web Studio Page 497 Function Group Execution Windows Embedded Thin Client RemoveUser Security Synchronous Supported Supported Supported Value Description 0 User removed successfully. 1 Invalid number of parameters. 2 Wrong parameter type. 3 User currently logged on does not have the rights to remove (i.e., user does not have Edit Security System). 4 User cannot be removed. 5 Specified user does not exist. 6 Component-level failure. 7 Failed to save to configuration file. 8 The current Security Mode does not allow user to be removed.
Tag Name Expression Tag RemoveUser( "Bob" ) Tag RemoveUser( "Albert" ) Function Group Execution Windows Embedded Thin Client SetPassword Security Synchronous Supported Supported Supported