I have followed this blog, but no luck.
I don't know, how they claim that code works. I tried several ways to find out a resolution for this, but no luck. Any way I am trying, I am getting below exception, if the call is made through nintex form.
Please let me know, if anyone has done this and able to get the data populated from users profile in nintex forms in office 365