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: We are 100% in the cloud with Office 365. Not sure were to get the account ID as it does not display in user profiles. If I use this URL - https://..../_layouts/userdisp.aspx, I get redirected to my about me page and the URL after redirecting is: https://...-my.sharepoint.com/PersonImmersive.aspx?accountname=i%3a0%23.f|membership|jerry.ober%40company.com&source=https%3a%2f%2fcompany.sharepoint.com%2f_layouts%2fuserdisp.aspx%3fforce%3d1%26&title=the%20hub I have tried, email address, and login ID and when linking to https://...sharepoint.com/_layouts/userdisp.aspx?ID=nnn&force=true I get: The query string "ID" is missing or invalid

Viewing all articles
Browse latest Browse all 6517


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