Forum Discussion
kboecher
Sep 28, 2022Copper Contributor
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 load resource) on /_api/SP.UI.ApplicationPages.ClientPeoplePickerWebServiceInterface.clientPeoplePickerSearchUser
My control
<PeoplePicker
context={props.context}
titleText="People Picker"
personSelectionLimit={3}
//groupName={"Team Site Owners"} // Leave this blank in case you want to filter from all users
showtooltip={true}
required={true}
disabled={false}
onChange={_getPeoplePickerItems}
showHiddenInUI={false}
principalTypes={[PrincipalType.User]}
resolveDelay={1000} />
- I had the same issue with version 3.10.0. A downgrade to version 3.9.0 helped
npm install @pnp/spfx-controls-react@3.9.0
- SvenSieverdingBronze ContributorI had the same issue with version 3.10.0. A downgrade to version 3.9.0 helped
npm install @pnp/spfx-controls-react@3.9.0- kboecherCopper ContributorYes, it works, thanx 🙂 - do you know why?
- SvenSieverdingBronze ContributorI think the problem was that the a "GET" request to a SharePoint API was fired, but it had to be a "POST" request, but i not sure