pnp / pnp/sp-dev-fx-controls-react

[PeoplePicker] Different group with similar name is getting selected on default selected

Open
#2,041 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Needs: Triage :mag: status:details needed
Dominant language
TypeScript
Stars
433
Forks
418
Avg merge
5d 6m
Merged PRs (30d)
19

Description

I am using the People Picker control from @pnp/spfx-controls-react.
There is an API being posted internally "/_api/SP.UI.ApplicationPages.ClientPeoplePickerWebServiceInterface.clientPeoplePickerSearchUser".
When I pass the name of a group, it returns results from a different group with a similar name — not the exact one I specified.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by tracing the PeoplePicker control's default-selected handling and its call to the clientPeoplePickerSearchUser API. Reproduce the similar-name group case, then verify that the exact group specified is selected rather than the returned group with a similar name.

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
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.