This project has moved. For the latest updates, please go here.

Get Location information from SPServices

Feb 10, 2014 at 6:32 AM
I can get many of the properties of user from SPServices but i cannot get location information.
<script src="/SiteAssets/jquery.min.js" type="text/javascript"></script><script src="/SiteAssets/jquery.SPServices-2013.02a.min.js" type="text/javascript"></script><script type="text/javascript">
$(document).ready(function() {

var thisUserID = $().SPServices.SPGetCurrentUser({
fieldName: "EMail",
debug: false


The above code gets me email of currently logged in user . I need location of that user but not from user profile, i need it from AD. UserInfo list may be helpful??
Feb 10, 2014 at 1:58 PM
SPGetCurrentUser "scrapes" the values from the UserDisp.aspx page (as noted in the docs), so it's already going against the User Information List. If the location info is in AD, then you will probably have better luck pulling it from the UserProfileService.