SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

When fetching user profile data using CSOM, we are able to get the PictureURL property. However, when we attempt to display it, we're given the generic 'Image Not Found' image.

Initial (brief) investigation led me to this article:

Which seems to suggest that we're attempting to download the image from across a different domain, and SharePoint 2013 does not allow this by default.

The article provides a fix, but this seems to only apply to the on-premise version of SP2013. Office 365 version does not have that cmdlet installed/enabled.

What is the O365 way to do this?

share|improve this question

You should use the cross-domain library.

Here is the article on MSDN :

Look at the next steps on the bottom of the article for more samples.

This one seems to solve your issue :

share|improve this answer
That looks like it's using a Sandbox Solution (deprecated).. isn't it? – Kieren Johnstone Apr 29 '13 at 15:28
Also note we get the URL of the profile image, it's just the image won't display in an iframe. I can't see how I can get an IMG tag to use the cross-domain library...? – Kieren Johnstone Apr 30 '13 at 7:21
No this is for an App for SharePoint 2013, which isn't deprecated. Have you tried it? – ggobbe Apr 30 '13 at 9:15

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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