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

Search query must query also the upn as mail could be null #1446

Merged
merged 2 commits into from
Feb 10, 2023

Conversation

eduardpaul
Copy link
Contributor

PeopleSearch service should also find people by userPrincipalName when group transitive membership check is used. If the user does not have an email or the email is different from userPrincipalName currently it is not returned.

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

What's in this Pull Request?

This PR adds the userPrincipalName filter to the query.

When checking for transitive membership, search query must also check the upn as user could have an empty or different email.
Remove added space in query.
@joaojmendes joaojmendes merged commit 0f766a0 into pnp:dev Feb 10, 2023
@joaojmendes
Copy link
Collaborator

@eduardpaul , Thank you for the improvement .

@joaojmendes joaojmendes added this to the 3.13.0 milestone Feb 10, 2023
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