I am using the following code... but its shows nothing for some users

var thisUserAccount = $().SPServices.SPGetCurrentUser({
        fieldName: "Name",
        debug: false
  • Please share the versions of the libraries being used.
    – Jinxed
    Oct 18, 2013 at 4:58

2 Answers 2


Its hard to tell what the issue is...

Have you looked around on the SPServices codeplex forums?

The thing with SPGetCurrentUser is that it scrapes a HTML page (/_layouts/userdisp.aspx?Force=True) for the information (documentation here)... So if you go to that page for the given user(s) and you don't see the information you expect to retrieve, then the utility can't help you... The information on that page is expected to be in the format provided by a default OOB SharePoint installation, thus if you are working with a intance that has been heavily branded, things may look different from what this utility is looking for...


Do those users have any value for name?

It's probably a better solution to get the Id, like this:

    fieldName: "ID",
    debug: false

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.