?
Solved

Document Library Add Error

Posted on 2010-01-11
4
Medium Priority
?
266 Views
Last Modified: 2012-05-08
I have a WSS site and a document library. The issue is that my client wants the users to have Add capability but not Edit capability. "Require documents to be checked out before they can be edited?" is selected. When a user submits a document they get an access denied error, the document in is the "Checked out documents" section though. It would appear that the Check in process is part of the Edit permissions. Is there a way I can use an event receiver On Adding to change the Checked in property to true?

I have been hearing conflicting results and I would rather not get four hours in only to find out that in fact you can't do this.
0
Comment
Question by:Naanan
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
4 Comments
 
LVL 16

Accepted Solution

by:
quihong earned 1000 total points
ID: 26288867
Let me first say that the "Check out" status/flag/feature of SharePoint doesn't have anything to do with access. Its really just a simple flag, that says, hey I'm working on this file right now.

Regarding having Add but not Edit rights, I do not believe this is supported out of box by SharePoint. One potential solution would be to open the document library for Contribute rights, but once the document is uploaded, an Event Handler is run to change the permission of the particular file/item making it Read Only.
0
 

Author Comment

by:Naanan
ID: 26289079
if remove the requirement "Require documents to be checked out before they can be edited?", the users with add permissions can add documents without issue. As soon as I set it the other way the users without Edit permissions are given a permissions error. This is what led me to believe that the act of "Checking In" a document is covered by the edit permissions. If this is not infact the case I don't have another explanation for the behaviour.

I could try the event receiver but wouldn't the permissions have to be set on each individual document. Not that that is an issue I am just trying to confirm what you were stating.
0
 
LVL 16

Expert Comment

by:quihong
ID: 26289151
Not exactly sure what's with your checking in/out issue, but I don't think its important (correct me if I am wrong).

Yes, basically you are setting permissions at a item level via the event handler every time someone contributes a new document.
0
 

Author Comment

by:Naanan
ID: 26289277
It is kind of important as one of my clients wants to give people permissions to add documents to a library yet prevent them from editing the documents and they want to make sure that the documents are checked out if they are going to be edited.

I can solve the issue as you state, with an event receiver but I was hoping there was another way around that as our permissions are really complicated (not the best of situations) but this may be the way to handle it.

I will get to cracking and thanks for your support with this issue.
0

Featured Post

Free learning courses: Active Directory Deep Dive

Get a firm grasp on your IT environment when you learn Active Directory best practices with Veeam! Watch all, or choose any amount, of this three-part webinar series to improve your skills. From the basics to virtualization and backup, we got you covered.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

If you create your solutions on SharePoint sooner or later you will come upon a request to set  permissions of the item depending on some of the item's meta-data - the author, people assigned as approvers, divisions, categories etc. The most natu…
I used to be SharePoint evangelist in our company, so my Outlook always full of questions about how to do this, or where I can find that. One day I found such an email with the following question: "how to attach 3-State workflow (one of the workflow…
NetCrunch network monitor is a highly extensive platform for network monitoring and alert generation. In this video you'll see a live demo of NetCrunch with most notable features explained in a walk-through manner. You'll also get to know the philos…
This is my first video review of Microsoft Bookings, I will be doing a part two with a bit more information, but wanted to get this out to you folks.

765 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question