Use the ICIClientSettings interface SetSFTP method to enable or disable FTP access for a client. The site must be restarted for the change to take effect; the SetSFTP method returns TRUE. 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 SetsFTP(
[in] SFTPAdvBool val);
0 = Prohibited
1 = Allowed
-2 = Inherited
Example:
Dim strUser:strUser = "test"
set oUserSettings = oSite.GetUserSettings(strUser)
oUserSettings.SetSFTP ( True )