0

The URL for fetching the user profile picture changes after page refresh. The Account name is changed.

URL when new user is added to web-part:

http://your.xyz.com/_layouts/15/userphoto.aspx?size=M&accountname=xyz\john

After page refresh the URL changes to:

http://your.xyz.com/_layouts/15/userphoto.aspx?size=M&accountname=john@xyz.com
2
  • Is it causing any issue? are you able to see the profile picture after URL changes? Generally you can get the profile picture of user using URL like: https://<your site url>/_layouts/15/userphoto.aspx?size=M&accountname=<user email address>. Nov 20 '20 at 10:26
  • I want to use account name only and not email. The picture are not showing when i use the email. Nov 20 '20 at 11:27

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.