Theme
Parametric home directories
A frequently requested feature that Syncplify Server! offers in every edition is parametric home directories.
Many customers need to isolate every user in their own directory under a common container, the directory being named after the user, and want that directory created automatically if it does not exist when the user logs in. Say you have two or more users and want a layout like this:
text
C:\SFTPData
+----------\user_one
+----------\user_twoThis is very easy to do with just one VFS. First, create a Disk VFS with a parametric target: call it ParamVFS and point it to C:\SFTPData\.
Then, when you create the user profiles for user_one and user_two, choose ParamVFS as their home VFS:
The home directory of user_one is now C:\SFTPData\user_one, and the home directory of user_two is C:\SFTPData\user_two. Each directory is created automatically the first (or next) time that user logs in. The same works with a POSIX path on Linux, and the user import command accepts the variable in its path columns too.
The variables a VFS target accepts
Besides , these variables can be used in a parametric VFS target:
| Variable | Expands to |
|---|---|
| The username (ID) of the authenticated user |
| The content of the Description field of the user's profile |
| The home directory of an LDAP (or Active Directory) user, as the directory reports it. Available for LDAP users and groups only, and only if the directory defines it |
| The first string of the session's custom data, if a script populated it in a previously executed event handler. Requires an edition with scripting |
| The current date in server time, as YYYYMMDD |
| The current date in UTC, as YYYYMMDD |
The banners and greetings use the same notation with a different set of variables. Both sets are documented in the manual's page on variables.
INFO
Since version 6, the double curly bracket notation () is the notation for every parametric variable. The old notation with square brackets and percent signs ([%USERNAME%]) is still accepted for compatibility, but it will be dropped in the future: update your configurations.