I have to display all SharePoint Online user's profile information including profile picture on a page in SharePoint Online.

Here profile pictures are added in Azure Active Directory.

As mentioned here, PictureUrl property does not synchronize with Azure Active Directory.

But, When I open up the delv of user, the profile picture shown there, but when I try to fetch the user profile using REST API, PictureUrl propery is always null?


enter image description here

PictureUrl Property:

enter image description here

Any reason behind this?

I already posted this here but it was all about using Graph API. Now my question is regarding PictureUrl property.

  • 1
    I think that's because the pictures are fetched from elsewhere. Answer in this question should work at least with my Delve setup's case.
    – moe
    May 24, 2017 at 5:13
  • I am using that only. But it returns default thumbnail everytime. it seems that it does not generate the thumbnail image. If this is the case then the main question is from where its displaying on Delve? If I check image source then it always shows up the same for every image, whether that image is added in Azure AD or Office 365 user profile. May 24, 2017 at 5:16
  • My bad, can you check with this url - https://outlook.office365.com/owa/service.svc/s/[email protected]&size=HR120x120 ? May 24, 2017 at 5:35

1 Answer 1


Gautam Sheth's answer works perfeclty. https://outlook.office365.com/owa/service.svc/s/[email protected]&size=HR120x120 This always gets profile photo, even if synch fails between Delve (OWA) and UserInfo Table within SP site. The only thing is, when user does not have a photo in Delve (OWA) it returns an blank picture. We can attach to the load event for the pic then and detect it like so:

On Load event for html generated IMG:


function OnEmptyPic(theImg)
    var img = new Image();
    var newSrc = theImg.src;
    img.onload = function(){
        if(this.width == 1)
            newSrc = '.../images/person.gif';
            theImg.src = newSrc;
    img.src = newSrc;

If image returned from Delve has a width of 1, we just replace it with some other, generic one.

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.