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 experiencing the same issues bohrar. I've downgraded to jquery 1.8.3 and spservices 0.7.2, without any improvement. I tried mixing various versions of each with the same results. Calls work for site members, but non site members with contribute rights get nothing. Calls returns nothing. Any suggestions?

function GetUserData() {
var thisUserAccount = "";
var thisUserName    = "";
$(document).ready(function () {
    thisUserAccount = $().SPServices.SPGetCurrentUser({
        fieldName: 'Name',
        debug: false
    });        
    var tstarray = thisUserAccount;
    var myUserID = tstarray.slice(4);
    thisUserName = $().SPServices.SPGetCurrentUser({
        fieldName: 'Title',
        debug: false
    });

Viewing all articles
Browse latest Browse all 6517

Trending Articles



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