SPServices - UpdateListItems on User Information List

Sep 11, 2014 at 8:14 PM
Edited Sep 11, 2014 at 8:15 PM
Hi all,

Having problems with updating the user information list via SPServices.

Background: We've added a column into the user information list, datatype of "checkbox", called "DocumentNotifier". Essentially it is used to notify user when there is a new document.

We want to update this column to be false if someone has clicked on a button. Here is our jquery code:
var uid = $().SPServices.SPGetCurrentUser({
        fieldName: "Name"

        operation: "UpdateListItems",
        async: false,
        ID: uid,
        webUrl: "/",
        listName: "UserInfo",
        batchCmd: "Update",
        valuepairs:[["DocumentNotifier" , false]],
        updates: "<Batch OnError=\"Continue\">" 
            + "<Method ID=\"1\" Cmd=\"Update\">"
            + "<Field Name=\"DocumentNotifier\">false</Field>"
            + "</Method>" 
            + "</Batch>",       
        updates: "<Batch OnError='Continue'>" 
            + "<Method ID='1' Cmd='Update'>"
            + "<Field Name='DocumentNotifier'>false</Field>"
            + "</Method>" 
            + "</Batch>",   
        completefunc: function (xData, Status) {
          alert(Status + "|" + xData.responseText);
The jquery submit status was successful. The sharepoint response error code was 0x80004005, text of "Cannot complete this action. Please try again". Looking at this error code, it seems that it is a 401 call. In the server UML , it says: "Non-OAuth request. IsAuthenticated=True"
Note: We've tried different values of "No", "false", 1, 0 as the pair value as well. No change.

Alternatively, when we try to submit the above commented out CAML, the subsequent error is "Cannot access closed stream".

Any help would be appreciated. Thanks!
Sep 11, 2014 at 8:17 PM
Quick answer? Don't even try to update the UIL. It's a very special list and you're liable to get yourself into trouble,

Sep 11, 2014 at 11:46 PM
Is updating this internal list even possible/allowed via WebServices? Even though dangerous and likely to mess up te entire site collection.

Paul T.

-- Sent from Mobile

Sep 12, 2014 at 8:44 PM
While I understand that, how would you then approach a user notification process? We'd like the user to be notified with a web based flag, that there is a new file uploaded into a library. We're focusing on setting their flag to "no" after a click to a specific image.
Sep 12, 2014 at 10:31 PM
Just create a custom list somewhere to manage that data.