UnblockUser

This function unblocks a blocked user in the security system.

Function Group Execution Windows Embedded Thin Client Mobile Access
UnblockUser Security Synchronous Supported Supported Supported Not supported

Syntax

  UnblockUser( strUserName )  
strUserName
The name of the user to unblock.

Returned value

This function returns the following possible values:
Value Description
0 User unblocked successfully.
1 Invalid number of parameters.
2 Wrong parameter type.
3 Specified user does not exist.
4 User currently logged on does not have the rights to unblock (i.e., user does not have Edit Security System).
5 The operation on the distributed security system failed.
6 Specified user cannot be blocked.
7 The current Security Mode does not allow user to be blocked/unblocked.
8 Internal error.

Notes

If you use this function to unblock a user, then the option User is blocked is cleared in the User Account dialog. For more information, see Creating and configuring users.

Examples

Tag Name Expression
Tag UnblockUser( “Bob” )
Tag UnblockUser( “Albert” )

UnblockUser