Can I prevent a user from deleting his MySite?
|
Another option would be to develop an event receiver for the 'site is being deleted' event and have it canceled. |
|||
|
|
|
You might be able to modify the permissions at the web application level through Central Admin. Manage Web Applications > User Permissions However, this will limit what the site collection administrator can do on his own site. Here is a possible code solution to stop the WebDeleting event: http://stackoverflow.com/questions/1137445/how-to-prevent-a-mysite-owner-form-deleting-the-mysite-root-website |
|||||
|
|
Users are granted site collection administrator rights to their My Site, so they'll have the ability to do so. Aside from training and making sure the sites are backed up routinely, I'm not sure there is anything else that can be done. Some of the developers round here might have event receiver ideas. And as Lori mentioned, you can fiddle with the web application permissions, but this would also prevent users from deleting any subsites they create in their My Site. |
|||
|
|
|
Along the lines of what Eric suggests: You could implement the Site Recycle Bin that is available from Microsoft (supports both sites and site collections). This way if a site was deleted, it could get undeleted again. |
|||
|
|
|
If the mysites are in a different web application than other team or publishing sites, you could consider adjusting the web application user permissions to remove the ability to delete the site. |
|||
|
