SPServices, Nintex, and Claims Based Auth

Mar 15, 2015 at 2:40 PM
Hi all,

I am having trouble using SPServices with Nintex Forms and Claims Based Auth.

Particularly, it cannot seem to get any data from the User Profile Service.

I noticed that the username it gets when querying account names programatically is of the format i#0:<domain>:<username> (or something of the like). I thought this was the problem so I just changed it back to <domain>:<username>.

The code I'm using is similar to this one:
// Query the User Profile Service for the current user's manager
NWF$(document).ready(function() {
    var ManagerAccount;
        operation: "GetUserProfileByName",
        async: false,   
        AccountName: NWF$().SPServices.SPGetCurrentUser(),
        completefunc: function (xData, Status) {
            ManagerAccount = getUPValue(xData.responseXML, "Manager");
    // Initialise Manager People picker control
    var managerPicker = new NF.PeoplePickerWrapper('.manager-control input');
    managerPicker.ready(function () {
        //search for Manager Name and add first search result
        managerPicker.search(ManagerAccount).done(function (data) {
// ****************************************************
// Function to retrieve User Properties
// ****************************************************
function getUPValue(x, p) {
    var thisValue = NWF$(x).SPFilterNode("PropertyData").filter(function() {
    return NWF$(this).find("Name").text() == p;
    return thisValue;
Thank you!
Mar 15, 2015 at 4:58 PM
At a quick glance it seems you're doing things right. Are you getting a valid response from the server? It might just be a matter of stepping through your code to see where it's going wrong.

Marked as answer by waterborne on 3/16/2015 at 8:12 PM
Mar 17, 2015 at 3:12 AM
Hi marc,

I figure out the problem. SPServices was working, it's just that the User Profile property itself was blank.