Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix/people search service profile picture image url #646

Merged
merged 4 commits into from
Sep 2, 2020

Conversation

juhaalhojoki
Copy link

Q A
Bug fix? [ x]
New feature? [ ]
New sample? [ ]
Related issues? fixes #X, partially #Y, mentioned in #Z

What's in this Pull Request?

Noticed that an image for a user picked in PeoplePicker didn't get resolved on my dev tenant for my test users even when they have profile picture set.
PeopleSearchService:
Issue: The generateUserPhotoLink(value: string) method that resolves user's profile picture URL takes user's email address as an input parameter as the parameter for the accountName query string parameter. If users don't have email address set or email address does not match user's account name, image cannot be resolved.
Fix: using Description field from the response solves the issue. Description field contains user's account name.

@AJIXuMuK AJIXuMuK merged commit 5079899 into pnp:dev Sep 2, 2020
@AJIXuMuK
Copy link
Collaborator

AJIXuMuK commented Sep 2, 2020

Thank you @juhaalhojoki!
Great contribution!

@AJIXuMuK AJIXuMuK added this to the 1.20.0 milestone Sep 2, 2020
@estruyf estruyf mentioned this pull request Sep 9, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants