cancel
Showing results for 
Search instead for 
Did you mean: 

Prevent User Homes folder from deletion

pmverma
Champ in-the-making
Champ in-the-making
Hi all,

I want to restrict the folder deletion for "User Homes"- i.e. nobody could delete it , including admins itself.

At first, I think it will possible to restrict if we filter it from js file.
I tried, 1. filter with nodeRef
           2. filter by name (this is not suitable in case when User Homes folder will be renamed)

I found nodeRef for User Homes is not same as in every Alfresco installed machine.

Can anybody advice any other fine way or how it would be done.

Thank you in advance.
3 REPLIES 3

mitpatoliya
Star Collaborator
Star Collaborator
But in what case your userhome gets deleted?
Also you can remove all other users by manage permissions but in that case users will not be able to delete their home space as well.
Also admin will defiantly have the rights to delete that.

pmverma
Champ in-the-making
Champ in-the-making
Thanks for your quick reply.

But in what case your userhome gets deleted?

It is not about my userhome folder. I mean "User Homes" folder under Repository in which has all users home.
If this folder is deleted(suppose when some admin rights user cheat–also delete from trashcan ) then  no other users will be able to use system.

So, i like to restrict it anyway.

:idea:

mitpatoliya
Star Collaborator
Star Collaborator
Yes, I am talking about that only