Quantcast
Channel: jQuery Library for SharePoint Web Services
Viewing all articles
Browse latest Browse all 6517

New Post: SPGetCurrentUser not returning user information

$
0
0
I am getting the same issue of not getting the user info using SPGetCurrentUser.() I have tried the following:
-- Quotes are fine
-- Able to access the userdisp.aspx as the user.
-- Using the following version of js files:
    jquery-1.9.0.js  , jquery.SPServices-0.7.2.min.js
-- Other functions that I have tried are working for example -- GetListItems using SPServices and $().SPServices.SPGetCurrentSite()
-- I put alert around the call and the second alert doesn't get called.

var thisSite = $().SPServices.SPGetCurrentSite();
alert(thisSite);
sUserEmail = $().SPServices.SPGetCurrentUser({ fieldName: 'EMail', debug: false });
alert(sUserEmail);

Any idea what could be the issue?

Viewing all articles
Browse latest Browse all 6517

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>