Getting wrong UserID in PeoplePicker of @pnp/spfx-controls-react.
See original GitHub issueWhen 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:
- Created 5 years ago
- Comments:6
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
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.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.