pnp / pnp/sp-dev-fx-controls-react
PeoplePicker : showing wrong selected users
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 433
- Forks
- 418
- Avg merge
- 5d 6m
- Merged PRs (30d)
- 19
Description
Thank you for reporting an issue, suggesting an enhancement, or asking a question. We appreciate your feedback - to help the team understand your
needs please complete the below template to ensure we have the details to help. Thanks!
Please check out the documentation to see if your question is already addressed there. This will help us ensure our documentation is up to date.
Category
[ ] Enhancement
[X ] Bug
[ ] Question
Version
Please specify what version of the library you are using: [ 3.20 ]
If you are not using the latest release, please update and see if the issue is resolved before submitting an issue.
Expected / Desired Behavior / Question
I search for a user in the peoplePicker and select the user. I expect that the same user is shown
Observed Behavior
I search for a user who has a nromal acocunt and an admin account. The normal account ist test@test.com, the admin account ist adm_test@test.com.
The Adm account has OtherMails set to test@test.com. The drop down shows both users(which is correct), but when i select the normal account, suddenlt the people picker shows the Admin.
My explanation is that there is a call to https://britaglobal.sharepoint.com/sites/projectplatform/_api/SP.UI.ApplicationPages.ClientPeoplePickerWebServiceInterface.clientPeoplePickerSearchUser with QueryText test@test.com and MaximumEntitySuggestions:1. This API returns the Admin account because the admin account has test@test.com as OtherMails
Steps to Reproduce
If you are reporting an issue please describe the steps to reproduce the bug in sufficient detail to allow testing. If you are making
a suggestion or asking a question delete this section.
Submission Guidelines
Delete this section after reading
- All suggestions, questions and issues are welcome, please let us know what's on your mind.
- Remember to include sufficient details and context.
- If you have multiple suggestions, questions, or bugs please submit them in separate issues so we can track resolution.
Thanks!
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start at the PeoplePicker control and reproduce the selection with a normal account and an admin account whose OtherMails contains the normal account's address. Inspect the clientPeoplePickerSearchUser request and its MaximumEntitySuggestions:1 behavior; done means selecting the normal account continues to display that same account rather than the admin account.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- react, typescript
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 55/100