Pnpjs: Profile picture

Created on 13 May 2019  路  4Comments  路  Source: pnp/pnpjs

Is there any way to get the url of the profile picture for a specific user?

non-library answered question

Most helpful comment

In SP 2016 userphoto.aspx can be used: /_layouts/15/[email protected]&Size=L.

All 4 comments

In SharePoint, there are tons of different ways of getting a profile pic. ;)
I'd suggest taking a looks at any profile pic on a tenant in standard UI and use the same logic in the app.

E.g.:

Sorry, I didn't specify that I'm using Sharepoint 2016 On-premises,I know that this service is available using Sharepoint online, but is it available using SP2016 On-premises?
Thanks.

In SP 2016 userphoto.aspx can be used: /_layouts/15/[email protected]&Size=L.

Thanks.

Was this page helpful?
0 / 5 - 0 ratings