%GetUserPasswordExpirationTime function

%GetUserPasswordExpirationTime function


Function

The function returns the password expiration time.

Declaration

TIME %GetUserPasswordExpirationTime( TEXT in userName ) TIME %GetUserPasswordExpirationTime( HBJ in userID )

Parameters

userName

Name of User object type

userID

Value of HBJ or INT type. Unique identifier of User object type.

Description

The function returns the time when the user’s password expires. If the password does not have a defined expiration time, the function returns an invalid value with the A flag (see example). If the user does not exist, the function returns an invalid value without a flag.

Example

TIME _expirationTime TEXT _userName _userName := "AnyUserName" _expirationTimeName := %GetUserPasswordExpirationTime (_userName) ; IF _expirationTime\VLD THEN ; Password expiration time is defined ELSIF _expirationTime\FLA THEN ; Password expiration time is undefined ELSE ; User does not exist ENDIF