18.01.2015 Views

Technical Reference Manual - InduSoft

Technical Reference Manual - InduSoft

Technical Reference Manual - InduSoft

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Appendix: Built-in Scripting Language<br />

Value<br />

Description<br />

-2 Wrong parameter type.<br />

-1 Invalid number of parameters.<br />

0 Couldn't read security data.<br />

1 File imported successfully.<br />

Examples<br />

ExportSecuritySystem( "curr3ntPa55w0rd", "C:\security.txt", "1mp0rtPa55w0rd" )<br />

ExportSecuritySystem( "curr3ntPa55w0rd", "C:\security.txt", "1mp0rtPa55w0rd", 2 )<br />

RemoveUser<br />

Removes a user from the system.<br />

Function Group Execution Windows Embedded Thin Client<br />

RemoveUser Security Synchronous Supported Supported Supported<br />

Syntax<br />

RemoveUser( strUserName )<br />

strUserName<br />

The name of the user to be removed.<br />

Returned value<br />

This function returns the following possible values:<br />

Value<br />

Description<br />

0 User removed successfully.<br />

1 Invalid number of parameters.<br />

2 Wrong parameter type.<br />

3 User currently logged on does not have the rights to remove (i.e., user does not<br />

have Edit Security System).<br />

4 User cannot be removed.<br />

5 Specified user does not exist.<br />

6 Component-level failure.<br />

7 Failed to save to configuration file.<br />

8 The current Security Mode does not allow user to be removed.<br />

Examples<br />

Tag Name<br />

Expression<br />

Tag RemoveUser( "Bob" )<br />

Tag RemoveUser( "Albert" )<br />

<strong>InduSoft</strong> Web Studio Page 593

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!