When the admin user create the user, I customize the code to switch on and off \"homeFolderCreationEager\" but it can only delay the creation of the folder. When the correspondi
I studied the source and found that
getHomeFolder method of class PortableHomeFolderManager class create the folder automatically.
So I commented out that part and return home space node like following
homeSpaceNodeRef = new HomeSpaceNodeRef(getRootPathNodeRef(provider),
HomeSpaceNodeRef.Status.REFERENCED);
return homeSpaceNodeRef;
//fileInfo = createTree(provider, getRootPathNodeRef(provider), homeFolderPath,provider.getTemplateNodeRef(), fileFolderService);