This project has moved and is read-only. For the latest updates, please go here.

Access denied when getting list from personal site

Oct 27, 2010 at 6:20 PM
I am trying to get the id of a list on the current users personal site using the following code:
function GetListId(listname) {
    var id = "";
        operation: "GetList",
        webURL: personalUrl,
        listName: listname,
        async: false,
        completefunc: function(xData, Status) {
            id = $(xData.responseXML).find("List").attr("ID");

    return id;
However, I am getting an "Access denied" error every time I try.
Any ideas?
Oct 28, 2010 at 1:05 AM
Um, a permissions problem? Remember that the Web Services run with the current user's credentials. M.
Oct 28, 2010 at 8:57 PM

You would think that. However, I am using the user profile web service in the same script and it works fine.




Oct 28, 2010 at 9:01 PM

What's the exact error? Can you take a screenshot or capture the text?


Oct 28, 2010 at 9:27 PM

The error looks something like this

Line: 128

Char: 287

Error: Access is denied.

Code: 0

URL: http://portal/Shared%20Documents/rolodex.aspx




Oct 28, 2010 at 9:35 PM

Hmm. Does the rest of the page render properly? Are you sure the personalUrl is your own?


Oct 28, 2010 at 10:03 PM

Yes and yes.

I have an alert box that shows me the personalUrl value and it is correct.






Oct 30, 2010 at 12:11 AM

I was curious as to what you need the ID of the list for? Can you not just use the name for what you are doing? It seems like you slready have that though so that is why I am asking?