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

Commented Unassigned: SPGetCurrentUser not returning email or sipaddress for some users [10268]

$
0
0
I have a button that collects the currently logged in users email address that is working for most of the 7k plus users accessing it. I have 20 tickets for users that the function is not working for. The current code that the growing number of users are having an issue with is:

<script language="javascript" type="text/javascript" src="https://.../sites/assets/SiteAssets/jquery-2.0.3.min.js"></script>
<script type="text/javascript" src="https://.../sites/assets/SiteAssets/jquery.SPServices-2013.01.js"></script>
<!-- END -->
</head>

<body>
<script type="text/javascript">

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

In the code above, the email address is returned for most users, but for a growing number of folks, thisUserAccount is blank.

I have also tried SipAddress with the same outcome.

If I change to Title, the users experiencing the problem return their name correctly. I have been working on this for an entire day and hope someone can help.

Office 365, Windows 7, IE10
Comments: The users are getting to the page on a subsite and pressing the button with the spservices call. Since they are making it to the page shouldn't they be in the list?

Viewing all articles
Browse latest Browse all 6517


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