This project has moved. For the latest updates, please go here.
2

Closed

$().SPServices.SPGetCurrentUser isn't returning ID

description

From https://spservices.codeplex.com/discussions/546317

SimK:

I think I may have a bug. If you request the ID singly, like so:
var currentUser = $().SPServices.SPGetCurrentUser({
  fieldName: "ID"
});
I think it will work fine. However, using fieldNames, it doesn't look like I do the appropriate check for undefined.

I'll add this to the Issue Tracker. In the meantime, you can just use the JavaScript variable _spPageContextInfo.userId.

M.
Closed Dec 16, 2014 at 5:34 PM by sympmarc
Fixed/deployed in 2014.02

comments

sympmarc wrote Oct 16, 2014 at 1:34 PM

Fixed in 2014.02ALPHA5