question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Getting wrong UserID in PeoplePicker of @pnp/spfx-controls-react.

See original GitHub issue

When i use people picker i get following user in selectedItems function.

Output in Version: @pnp/spfx-controls-react”: “1.11.0”,

id: "i:0#.f|membership|user1@sharepointwaqar.onmicrosoft.com"
imageInitials: "WJ"
imageUrl: "https://outlook.office365.com/owa/service.svc/s/GetPersonaPhoto?email=user1@sharepointwaqar.onmicrosoft.com&UA=0&size=HR96x96"
optionalText: ""
secondaryText: "user1@sharepointwaqar.onmicrosoft.com"
tertiaryText: ""
text: "Waqar Javaid"

instead of

Output in version **"@pnp/spfx-controls-react": "1.6.0"**

id: 10
imageInitials: ""
imageUrl: "https://outlook.office365.com/owa/service.svc/s/GetPersonaPhoto?email=user1@sharepointwaqar.onmicrosoft.com&UA=0&size=HR96x96"
optionalText: ""
primaryText: "Waqar Javaid"
secondaryText: "user1@sharepointwaqar.onmicrosoft.com"
selected: true
tertiaryText: ""

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:6

github_iconTop GitHub Comments

5reactions
sympmarccommented, Jan 18, 2019

If you use ensureUser: true you’ll get the ID from the User Information List instead of the account. If the user hasn’t been added yet, this will ensure they are.

0reactions
AJIXuMuKcommented, Jun 15, 2020

Closing this one as old. Please, feel free to open a new issue if you still experience problems with PeoplePicker in the latest version of the library.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Getting wrong UserID in PeoplePicker of @pnp/spfx-controls ...
When i use people picker i get following user in selectedItems function. Output in Version: "@pnp/spfx-controls-react": "1.11.0", ...
Read more >
PNP People Picker no users returned
I have an PNP people Picker in a spfx web part, but It doesn't find any users. I get error 400 (Failed to...
Read more >
PeoplePicker - @pnp/spfx-controls-react
Property Type Required Default context BaseComponentContext yes titleText string no groupName string no none
Read more >
PNP CustomCollectionFieldType - PeoplePicker can't find users
There appears to be a bug in version 3.10 of the spfx-controls-react library (to be fixed in 3.11) that is causing this behavior....
Read more >
PnP People Picker in the SharePoint Framework(SPFx) webpart
This article provide steps to implement the PnP Date People Picker in the SharePoint Framework (SPFx), generally People picker can be used to ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found