This project has moved and is read-only. For the latest updates, please go here.

Authentication issue to view a Users MySite Profile Picture

Nov 19, 2012 at 4:33 PM


I am using SPServices to call the GetUserProfileByName webservice from a sandboxed web part. I'm passing a users name in and getting the URL to their Picture. 

The issue I have is that the picture won't display in the web part until the logged in user goes to the MySite web app and authenticates there. 

Any ideas if there is a way to display the picture without the user having to visit MySites in another browser window/tab?

I have tried making an ajax request using jQuery to the MySites URL in code but this doesn't work.



Nov 19, 2012 at 4:51 PM


If you're using Windows Auth, you shouldn't see that credential challenge. If not, though, you will because you're hitting a separate Web App. I would expect that you'd see the exact same thing if you navigate from the main Site Collection to MySites in the browser.