As we transition to the new Hyland Community, some post links may be temporarily disrupted as we finalize redirects. We apologize for the inconvenience and are working to resolve this as quickly as possible. Details.
Hi,
I want to block user to use My Files section. Actually they can acces to it and I want stop it, delete button or other ways
Thk a lot
Untested (by me at least) but I wonder if you can disable creation of user home folders (~ "My Files") in alfresco-global.properties for new users ?
home.folder.creation.disabled=true
You would need to check the effect in the UIs (and any other client integrations) to see if they degrade gracefully or require customisation.
You may wish also need to go back and remove existing user home folders. If you go down this path, I highly recommend doing a backup first (with a tested restore to a separate system) 😉
Regards,
Jan
I try this solution but user can create or add file and folder in My Files even if i add home.folder.creation.disabled=true in conf file
When using this configuration, you need to start from scratch, as user home folders are created (on not) on user creation.
Yes but i create a LDAP link and all my user are in alfresco so it didn't work isn't it ?
Or where can I modify html file of alfresco and delete My Files part
Removing a menu item (Aikau) | Alfresco Documentation
Yes i try it but when I copy paste this line after the ';' in this file and reboot my server, it is broken.
And I don't sucess to create a AIO SDK project and Share AMP
I just need to paste this line in the file or I need more ?
Here are a a few solutions, which I have not tested, buy may work:
1. This is the default location of the users' home folders:
spaces.user_homes.childname=app:user_homes
Set it with a different folder name in alfresco-global.properties (you may have to create a folder named "/my user homes"):
spaces.user_homes.childname=app:my_user_homes
2. Disable the automatic creation of home folders:
After restarting, users will be unable to see their home folder after clicking on their home directory.
3. Optional: remove the menu option from the Share page (Removing a menu item (Aikau) | Alfresco Documentation )
4. There is still a problem: astute users may find a way to access their old home using the right URL. If you can't delete the home folders, then you should change the ownership of the folders and files (let's say, to admin).
What line?
First of all, you should override the following out-of-the-box package "org.alfresco.share.header" by your custom one.
To achieve that overriding, you should use surf module extension (for more info: https://docs.alfresco.com/5.1/tasks/dev-extensions-share-tutorials-custom-header-admin-menu.html).
And then, all what you have to do is add this line
widgetUtils.deleteObjectFromArray(model.jsonModel, "id", "HEADER_MY_FILES");
in your custom webScript controller "share-header.get.js"
That's all what you need to hide"MY FILES" from header.
Peace up,
mjaatit