Sharepoint 2010 Forum

 
Home » Forum » Sharepoint 2010       Ask a questionRSS Feeds

Client object Model Issue

  Asked By: Dale Dean         Date: Aug 31, 2009      Category: Sharepoint 2010      Views: 272
 

I'm new to SharePoint 2010 development but I have good experience in
SharePoint 2007.



I want update SharePoint list data using client object model using ECMA
scripts.



I was able to update the data, but when I tried it for a user who has only
read access it fails.



I know its authentication/permission issue, I tried to find out if there are
ways to impersonate user but I guess there are none[using JavaScript/ECMA
scripts].



Then I tried to the same using REST [using ECMA scripts], same results
again.



Has any one faced this situation, how to tackel this.



Note : I don't want to write Code behind[i know its weird, but that's the
requirement]

Tagged:        

 

2 Answers Found

 
Answer #1       Answered By: Akshara Negalur          Answered On: Aug 31, 2009       

Why not allow anonymous writes to the list?

 
Answer #2       Answered By: Timothy Davis          Answered On: Aug 31, 2009       

I have seen your question posted in several places. I think you have gotten the
same answer everywhere. You cannot update data unless you have permission to do
so. You need to enable add/edit/delete access for anonymous users if you want
anonymous users to update the list. SharePoint will not let the update happen
otherwise, no matter how you try to update the list.

 
Didn't find what you were looking for? Find more on Client object Model Issue Or get search suggestion and latest updates.


Your Answer
  • Answer should be atleast 30 Characters.
  • Please put code inside [Code] your code [/Code].