SharePoint Stuff

A collection of helpful tips and resources on maximising the value from a SharePoint Portal Server and Windows SharePoint Services Implementation.

Wednesday, August 09, 2006

Can't rename if you can't delete

The ability to delete items in SharePoint is managed via the permission "Delete items from a list, documents from a document library, and Web discussion comments in documents". However if you revoke this permission, the user is no longer able to rename documents either. They can change all other properties but cannot rename.

I have since then reviewed the SharePoint Object Model in more detail and according to the SPFileCollection Class (http://msdn.microsoft.com/library/default.asp?url=/library/en-us/spptsdk/html/tscSPFileCollection_SV01013559.asp), SharePoint only has 2 document management options - add and delete. Hence the rename of the file is effected by SharePoint as creating a copy of the file with the new filename and then deleting the old file.

So if the user can't delete - they can't rename. Unfortunately there is no workaround since the permissions don't go any more granular than this.

3 Comments:

At 7:57 AM, Blogger Himani Sharma said...

You saved my many sleepless nights. Thanks for this info!

Himani

 
At 7:14 AM, Anonymous Anonymous said...

That explains a lot!
Did you ever find a workaround?
EG a new feature called "Rename" which adds a new item into the dropdown when you hover over a file. This could prompt for a new filename and then renames this behind the scenes using an admin user. I've been trying to locate something like this off-the-shelf but can't find anything. Can anyone help please?

 
At 9:04 AM, Anonymous Anonymous said...

That explains a lot! Thanks!

 

Post a Comment

<< Home