Use the ICIClientSettings interface GetSFTP method to view whether access is enabled for a client. Refer to User Connection Protocols for an illustration of how this and other Client Settings Interface Methods and Properties can be accessed in the Administrator interface.
Signature:
HRESULT GetSFTP(
[out] VARIANT_BOOL *pInherited,
[out, retval] VARIANT_BOOL *pVal);
True = Access enabled
False = Access disabled
Example:
Dim strUser:strUser = "test"
set oUserSettings = oSite.GetUserSettings(strUser)
bIsFTPEnabled = oUserSettings.GetSFTP()
WScript.Echo ("bIsFTPEnabled="& bIsFTPEnabled)