pnp / PnP

SharePoint / Office 365 Developer Patterns and Practices - Archived older solutions. Please see https://aka.ms/m365pnp for updated guidance
https://aka.ms/m365pnp
Other
1.9k stars 3.31k forks source link

Profile Picture Information #1914

Closed danmyhre closed 3 years ago

danmyhre commented 3 years ago

Thank you for reporting an issue or suggesting an enhancement. We appreciate your feedback - to help the team to understand your needs, please complete the below template to ensure we have the necessary details to assist you. If you have a actual question, we would ask you to use SharePoint Developer Group at Microsoft Tech Community. Thanks!

Which PnP repository should you use to report the issue?

Samples/Core.ProfilePictureUploader/README.md

Category

[X] Bug [ ] Enhancement

Environment

[X] Office 365 / SharePoint Online [ ] SharePoint 2016 [ ] SharePoint 2013

If SharePoint on-premises, what's exact CU version:

Expected or Desired Behavior

readme says that you can pull the profile picture from EWS endpoint for hybrid exchange when user mailboxes are on-prem

Observed Behavior

Calling the EWS endpoint to get the synced picture from AD (thumbnailPhoto) results in a 404

Invoke-RestMethod : The remote server returned an error: (404) Not Found.

Steps to Reproduce

Invoke-RestMethod -Uri "https://outlook.office365.com/ews/Exchange.asmx/s/GetUserPhoto?email=onpremailuser@domain.com&size=HR648x648" -Credential $UserCredential