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

GetListItems What Happens If User Doesn't Have Permissions?

Jan 17, 2012 at 5:18 PM

I'm setting up a page that will pull list content from various lists and libraries on the same server. It works great (for me) but I'm wondering what would happen if a certain user doesn't have read access to one of those lists. Will SPServices bypass that GetListItems operation or will it break the jQuery at that point?

Jan 17, 2012 at 5:28 PM

The Web Services operate as the current user. So it's really no different than if the user tried to go to one of the lists and look at items in the browser. Your script should handle the case where the user doesn't get any results, just as you would in a DVWP or custom code. Uusually this just means displaying a pleasant message rather than nothing.


Jan 17, 2012 at 5:56 PM

OK great. I thought maybe it would not be able to connect to the list and throw an error. It sounds like it will just return 0 results. Thank you very much!