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

Calling GetListItems with a service account

Aug 19, 2011 at 7:00 AM

Is it possible to make a call to GetListItems (or any other SPServices operation) using explicitly defined credentials? 

i.e. pass service account credentials to access items from outside SharePoint, where there is no current user profile to piggyback

Aug 21, 2011 at 2:26 AM

Quick answer: no.

See my blog post:


Aug 22, 2011 at 11:26 PM

Can't you just add the password and username parameters on your ajax call though? Not that it's very safe,  or at all....

Aug 23, 2011 at 1:00 AM

Am I right in saying SPServices doesn't take those parameters but $.ajax() does?

Aug 23, 2011 at 2:17 AM
Edited Aug 23, 2011 at 4:34 AM

SPServices does not handle any kind of authentication, however, you can setup your ajax request with your own defaults:

Christophe Humbert showed me this link the other day. Thanks again bro!

So if you absolutely need to pass in a username/password, you can... but you should have a real good reason first.