Please ensure Javascript is enabled for purposes of website accessibility
Powered by Zoomin Software. For more details please contactZoomin

Plant SCADA

UserPasswordExpiryDays

  • Last UpdatedJun 17, 2026
  • 1 minute read

Not available for a Windows user.

Returns the number of days left before the user's password is due to expire.

To use this function, you can build a form page by using Cicode that takes the user name and password as inputs and output the number of days that return by UserPasswordExpiryDays.

Syntax

UserPasswordExpiryDays(sUserName)

sUserName:

The name of the user.

Return Value

The return value contains either the number of days before password expiry, or one of two exception conditions:

  • 0 to 365 - number of days

  • -1 - no expiry

  • -2 - user not found or password wrong

UserPassword

See Also

Security Functions

In This Topic
Related Links