1

I'm have permission level with perms for list "Add List Items" and "View Items" but then i'm try add new file with Windows explorer i get Access Denied error. And if set "Edit item" in permission level it work fine but i can edit files. How can i make only add permission without edit ?

3 Answers 3

1

IMHO this will not be possible by using only custom permissions.

I can think of few possible workarounds but they all requires some 'coding':

Option 1 You can build custom Event receiver with sole purpose to disable item editing. It is very simple code but still it is code (you need to deploy it properly so you need Visual Studio and basic knowledge of SP solution developing)

Using Event Receivers in SharePoint Foundation 2010

Event Cancellation

Event cancellation enables you to cancel an event receiver operation in a Before event prior to the conclusion of the action. For example, we can write some code in the ItemAdding event receiver that cancels the action of adding the item. So when the user tries to add an item, the operation is cancelled and the item is not added to the list. When the operation is cancelled, be sure to show the user an error message or provide a custom error message by redirecting the user to a specific URL.

Only downside is that edit form will be available but saving changes will be disabled (not a very user friendly approach).

Option 2 You can have temporary library and custom workflow developed by SharePoint Designer. After you upload document to temp library workflow will move it to another library with proper permissions.

Approval Workflow - Moving document to a read only document library

Option 3... You can always build custom workflow in VS or you can even use Event receiver to handle document move by code.

1
  • yeah, good solutions. But what about adding files throught Windows Explorer? Can I control this actions? May 17, 2012 at 5:05
0

You can create a custom permission level

http://office.microsoft.com/en-us/sharepoint-server-help/edit-create-and-delete-permission-levels-HA101805381.aspx

6
  • the problem not how do this. I'm create permission level with Add but then I'm try add new file in explorer happen error: Permission denied.
    – Yakovlev Igor
    May 4, 2012 at 6:01
  • Can you specify which all permissions you have specified. May 4, 2012 at 8:20
  • if i select all except "Edit Item in List" i get error when i'm try to add new file to list (both with windows explorer or programmatically)
    – Yakovlev Igor
    May 4, 2012 at 11:09
  • @Madhur he is saying he cannot add files without the custom permission "Edit Item in List" applied. Yakovlev: can you add the document without "Edit Item in List" permission through the web interface?
    – Kolten
    May 4, 2012 at 17:01
  • No. This is normal reaction ? Have u same?
    – Yakovlev Igor
    May 5, 2012 at 4:14
0

I was having a similar problem. I have ticked the 'View Application Pages' box as part of the bespoke permission level. This allows users to see the upload form which seems to have done the trick.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.