question

RahiniRadhaAP-8408 avatar image
0 Votes"
RahiniRadhaAP-8408 asked AllenXu-MSFT commented

SharePoint UserPhotos.aspx not showing the latest profile picture immediately

We are using SharePoint "UserPhotos.aspx" page for displaying the user's profile picture in our application like below.

http://domain.com/_layouts/15/userphoto.aspx?size=L&accountname=domainnameusername

The problem is, this url doesn't show the latest profile picture uploaded immediately. What we need to do to display the latest the latest profile picture immediately? Please advise.

office-sharepoint-server-administrationoffice-sharepoint-server-development
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

AllenXu-MSFT avatar image
0 Votes"
AllenXu-MSFT answered AllenXu-MSFT commented

Hi @RahiniRadhaAP-8408,

The user profile picture will be updated after User Profile Change Job timer job runs. Please go to SharePoint Central Administration -> Monitoring -> Review job definitions and then select View: Service and Services: User Profile Service. Select User Profile Service Application - User Profile Change Job.
78110-timerjob.png

You can click Run Now if you want to update user profile picture immediately. Also, you can set this timer job scheduled to run every 1 minutes. So that, you don't need to run the timer job manually every time you update the user profile picture.
78120-schedule.png

As per my test, browser cache also has impact on the URL return results. You'd better clean browser cache or change a browser when you frequently get pictures from the URL.


If an Answer is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


timerjob.png (35.9 KiB)
schedule.png (18.5 KiB)
· 4
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi,

Thanks for the suggestion.

When we clear the browser cache or enter the "Ctrl + F5", it is showing the latest profile picture. Also working fine when we try in different browser. But we cannot ask the user to do the same every time they upload a new profile picture.

Is there any way to do this programmatically?

0 Votes 0 ·
AllenXu-MSFT avatar image AllenXu-MSFT RahiniRadhaAP-8408 ·

Hi @RahiniRadhaAP-8408,

IE works fine in my end. Promote your users to use IE instead. There is no way to solve cache related issues programmatically.

0 Votes 0 ·
AllenXu-MSFT avatar image AllenXu-MSFT RahiniRadhaAP-8408 ·

@RahiniRadhaAP-8408,

How is everything going? If the reply is helpful to you, you could accept it as answer. It will be beneficial to others in this forum who meet the same issue in the future.

0 Votes 0 ·
AllenXu-MSFT avatar image AllenXu-MSFT RahiniRadhaAP-8408 ·

@RahiniRadhaAP-8408,

I'm checking to see how things are going on this issue. Please let me if you would like further assistance. You can accept the reply as answer if the reply is helpful to you.

0 Votes 0 ·