We are facing an issue to display user profile picture in people search. It's displaying default photo of person.
Let me give overview of current environment setup.
We have configured the SharePoint 2019 with 3 tiers SharePoint farm.
We have configured 2 applications with host header as below:
- Intranet site
- My site
We have configured following services,
User profile service with AD direct import sync and setup my site.
Configured Search service with content source crawl URLs as below:
We have checked following possibility to overcome an issue but didn't worked anything:
Verified the metadata property and crawl property mapping for ows_picture, Picture URL
Search crawl should not be displayed any errors for my site
Crawl and search service accounts should have proper permission on user profile service, search service application and on web application level
CrossDomainPhotosEnabled = true
User information list (hidden list) is displaying proper profile picture.
Checked proper permission assigned on profile_db in database
I have observed that people search result is displaying below similar user profile picture URL - /search/15/_layouts/userphoto.aspx?size=M&URL=https://mysite/user profile/profile picture/abc_mlength.jpg
When I have tried to access the direct my site Url the it's prompting credentials and after enter the correct credentials it's display proper image. So, user profile sync is working properly.
I think an issue with userphoto.aspx (i.e. proxy) page to retrieve photo from mysite host site collection and display in people search but couldn't found any solution how to resolve this.
I highly appreciate your suggestion or any assistance if I have missed anything on above points.
Note:- I did the same configuration in other environment and it's working fine.
Looking forward your suggestion or any assistance.
Thank you in advance.