Appendix: Built-in Scripting Language GetUserPwdAging Returns the time remaining before the password for a specific user expires. Syntax GetUserNames( strUser ) strUser User name whose password aging is checked. Returned value Note: If the function is not executed properly (e.g., User Name is invalid), or if the specified user is not logged on, then the function returns BAD quality. Examples GetUserState Use to see the current status of a selected user. Syntax GetUserState( strUserName ) strUserName The name of the user Returned value This function returns the following possible values:
InduSoft Web Studio Page 495 Tag Name Expression NumberOfUsers GetUserNames("UsersArray", 2) // Retrieves all users created in the development environment, stores names in the UsersArray tag and the number of users in the NumberOfUsers tag. NumberOfUsers GetUserNames("UsersArray", 2, "Groups") // Retrieves all users created in the development environment, stores names in the UsersArray tag and the number of users in the NumberOfUsers tag. The group name per each user is stored in the Groups tag. Function Group Execution Windows Embedded Thin Client GetUserPwdAgi ngSecurity Synchronous Supported Supported Supported ≤0 Number of hours since password expired. 0 Specified user is not logged on.
>0 Number of hours remaining until password expires. Tag Name Expression TagHoursToExpire GetUserPwdAging("John") // Returns the number of hours before the password for the User "John" expires. TagHoursToExpire GetUserPwdAging(UserName) // Returns the number of hours before the password for the current User logged on the system expires. Function Group Execution Windows Embedded Thin Client GetUserState Security Synchronous Supported Supported Supported Value Description -3 Specified user does not exist. -2 Wrong parameter type. -1 Invalid number of parameters.