

I have seen a plugin that will create a directory when adding a new user. You could do this and and use a setup like fileDownload that will hide the files actual location. Another option would be to use webloginPE and have some custom fields for the files.
If it is only for download (not upload) then it is not as tough to setup with a system like filedownload (or filedownloadPE) and might not even need a custom dir for each user.
Just some thoughts, but I haven’t used either setup
Not sure about the manager question

$e = &$modx->Event;
$folder = $_REQUEST['newusername'];
//$dir = $modx->config['rb_base_dir']."images/".$folder;
$dir = "/Users/mine/Sites/dev/assets/images/".$folder;
$folder_permissions = octdec($modx->config['new_folder_permissions']);
function mkdirs($strPath, $mode){ // recursive mkdir function
if (is_dir($strPath)) return true;
$pStrPath = dirname($strPath);
if (!mkdirs($pStrPath, $mode)) return false;
return @mkdir($strPath);
}
switch ($e->name) {
case "OnWUsrFormSave":
if($_REQUEST['mode']== '87'){
$old_umask = umask(0);
mkdirs($dir,$folder_permissions);
umask($old_umask);
}
break;
default: "";
return;
}
EDIT!
I was getting help on something like this a while ago, here’s a working plugin for creating a folder with the users name, when creating a new user from the manager.
$e = &$modx->Event; $folder = $_REQUEST['newusername']; //$dir = $modx->config['rb_base_dir']."images/".$folder; $dir = "/Users/mine/Sites/dev/assets/images/".$folder; $folder_permissions = octdec($modx->config['new_folder_permissions']); function mkdirs($strPath, $mode){ // recursive mkdir function if (is_dir($strPath)) return true; $pStrPath = dirname($strPath); if (!mkdirs($pStrPath, $mode)) return false; return @mkdir($strPath); } switch ($e->name) { case "OnWUsrFormSave": if($_REQUEST['mode']== '87'){ $old_umask = umask(0); mkdirs($dir,$folder_permissions); umask($old_umask); } break; default: ""; return; }
Should give you some ideas for modifying to fit your needs.
Were you able to get this working successfully? I likely will be needing to build something exactly like this and would love to leverage anything you’ve figured out thus far.
-Jason