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

Created 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

Viewing all articles
Browse latest Browse all 6517

Trending Articles



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