Picture Not showing In Owa upper Right Cornear

Muhammad Hussain 201 Reputation points
2020-07-27T07:13:59.067+00:00

 I’m facing a tiny issue, Experts suggestion is required. When I upload the picture in OWA directly or from the exchange Powershell, the users are able to see it in OWA upper right side picture corner and for other users in outlook but when I uploaded the picture from AD or from Any 3rd party tool (Code two, AD photo Editor), it only shows in that user ECP not in owa in right side corner as well as not for other company users.

13872-not-showing.jpg

13816-showing.jpg

Microsoft Exchange Online Management
Microsoft Exchange Online Management
Microsoft Exchange Online: A Microsoft email and calendaring hosted service.Management: The act or process of organizing, handling, directing or controlling something.
4,578 questions
0 comments No comments
{count} votes

Accepted answer
  1. Yuki Sun-MSFT 41,146 Reputation points Microsoft Vendor
    2020-07-28T03:02:36.957+00:00

    Hi @MHussainArif-5163,

    By “uploaded the picture from AD”, do you mean running the Import-RecipientDataProperty cmdlet? If this is the case, I tested in my lab using the commend below and also noticed that the photo doesn't show in OWA upper right corner, but if I click on it, the picture will display in the prompt:

     Import-RecipientDataProperty -Identity administrator -Picture -FileData ([Byte[]]$(Get-Content -Path "C:\Users\Administrator.CONTOSO\Desktop\1.jpg" -Encoding Byte -ReadCount 0))
    

    13898-3.jpg

    If I uploaded the photo via OWA or using the Set-UserPhoto cmdlet, the picture can display properly:

     Set-UserPhoto -Identity "administrator" -PictureData ([System.IO.File]::ReadAllBytes("C:\Users\Administrator.CONTOSO\Desktop\2.jpg"))
    

    13994-4.jpg

    Given this and based on my research, agree with ShashiShailaj that it's recommended to use the Set-UserPhoto cmdlet(for admins) or OWA to change the user's photo.

    0 comments No comments

1 additional answer

Sort by: Most helpful
  1. Shashi Shailaj 7,606 Reputation points Microsoft Employee
    2020-07-27T12:17:05.253+00:00

    Hello @Muhammad Hussain ,

    When you update any user's photo directly using PowerShell , you are setting the user's thumbnailphoto attribute directly for the cloud so source of authority for the thumbnailphoto attribute is the cloud system and once you make this change the photo/thumbnail attribute for the user can only be changed from the cloud or by Excnage PowerShell. However when you update it from on-prem AD by any tool , you are changing the attribute onpremise and waiting for the changes to sync to the cloud through Azure AD connect . As per the article :- https://support.microsoft.com/en-in/help/3062745/user-photos-aren-t-synced-from-the-on-premises-environment-to-exchange

    The thumbnailPhoto attribute is synced only one time between Azure AD and Exchange Online. Any later changes to the attribute from the on-premises environment are not synced to the Exchange Online mailbox.

    This is by design and I would suggest to directly let the user update the photo from the cloud as it is easier to manage. So either you can use the powershell , or let the user update the same from OWA or MS Teams etc. But once this is done, the exchange online system becomes the source of authority for photo/thumbnail for the user and it can not be updated from on-premise.

    I have not tried this as I do not have an exchange hybrid lab setup however you can try to remove the photo record by using the Powershell cmdlet Remove-UserPhoto -Identity EMAILID -ClearMailboxPhotoRecord and see if that clears the source of authority to Null so that the cloud object can now take updates from on-premise once again. And we also need to keep in mind that this is again one time change. I am not sure if this works but I am making a guess on this. I am hoping that you would be able to check this easily as you have this environment.

    Hope the above explanation helps. In case the information provided in this post helps, please do accept the post as answer . If you have any residual queries on this, please feel free to ask and we will further try to clarify your queries.

    Thank you.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.