Access denied when getting list from personal site

Oct 27, 2010 at 5: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 12:05 AM
Um, a permissions problem? Remember that the Web Services run with the current user's credentials. M.
Oct 28, 2010 at 7: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 8:01 PM

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


Oct 28, 2010 at 8: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 8:35 PM

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


Oct 28, 2010 at 9:03 PM

Yes and yes.

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






Oct 29, 2010 at 11:11 PM

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?