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

[PeoplePicker] - some users don't receive suggestions

Open
#1,934 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

type:question
Dominant language
TypeScript
Stars
433
Forks
418
Avg merge
5d 6m
Merged PRs (30d)
19

Description

Category

[x] Bug
[x] Question

Version

Please specify what version of the library you are using: ["@pnp/spfx-controls-react": "^3.20.0"]

Expected / Desired Behavior / Question

Some of the users do not receive suggestions for PeoplePicker.

While analyzing it, I noticed, that for them /_api/SP.UI.ApplicationPages.ClientPeoplePickerWebServiceInterface.clientPeoplePickerSearchUser doesn't return any suggestions.
value:"[]"

But for others it returns valid suggestions. I tried to modify their permissions in entra portal, however, it didn't help.
Question is, is there any limitation/security requirements on who can see the suggestions?

Observed Behavior

Some users can only user PeoplePicker by providing full email address.

Steps to Reproduce

Add PeoplePicker to SPFx webpart as intended.
Type first 3-5 letters of user/group

Thank you!

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 reproducing the PeoplePicker behavior in an SPFx webpart with @pnp/spfx-controls-react ^3.20.0, then inspect the clientPeoplePickerSearchUser endpoint response for affected and unaffected users. Done means determining whether permissions or security requirements explain the empty value and documenting or addressing the resulting behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
react, typescript
Domain
frontend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.