Has anyone found a way to display user photos in SharePoint from a search web part on a site without the images breaking when the authentication period to [tenant]-my.sharepoint.com times out?
For example, I have a publishing site at [tenant].sharepoint.com and on the home page we show all new employees based on the Hire Date property in their profile. The pictures come back but don't load because the image source url is for [tenant]-my.sharepoint.com. If you look at the network traffic it's trying to redirect them to re-authenticate against the "my site." If the users click on a profile it takes them to the auth page and then redirects them to the profile (without prompting for login info). Now that they've recently authenticated against the "my site" the pictures on the original homepage will display.
I understand the security reasons for this; however in on-prem implementations there's a "CrossDomainPhotosEnabled" web application property, but there's no such thing for SharePoint Online.
Has anyone gotten this scenario to work? Maybe some clever workaround I'm not considering?
Aucun commentaire:
Enregistrer un commentaire