Determining the Expiration Date for a User Account Using the COM API


THE INFORMATION IN THIS ARTICLE APPLIES TO:

  • EFT Server (All Versions)
  • Secure FTP (All Versions)

DISCUSSION

The COM API provides several methods related to user accounts. The method GetExpirationDateAsVariant is used to determine the expiration date of an account. For example:

Dim strUser: strUser = "test"

set oUserSettings = oSite.GetUserSettings(strUser)

dtAccExpDate =  oUserSettings.GetExpirationDateAsVariant()

WScript.Echo ("dtAccExpDate = "  & dtAccExpDate)

Refer to the COM API reference for details.